LoginSignup
1
1

More than 5 years have passed since last update.

【Unity】ビルドするとボタンが反応しない

Last updated at Posted at 2017-04-03

1度ビルドしてからボタンを押しても反応しなくなりました
EventSystemを消してしまったわけでもありません

結局、Canvasが2つありそれが問題だったようです
役目が終わったほうのCanvasについている「GraphicRaycaster」コンポーネントをオフにしてやるようにスクリプトを組めば動くようになりました

image

gameObject.GetComponent<GraphicRaycaster>().enabled = false;

ビルドするまで動いていたのは謎のままですが…

参照

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1