unclickable button when set as child
hello! I've put a reset button on my game, and on the first levels (with still camera) it works... but on lather levels (when camera start to follow the player) it doesn't work anymore. I've put it as child of the player (easyest way to make it move as him), but since then it stopped to work. (with the debug.log function, I've found that it doesn't even understand when the mouse is over it. some suggestions?
Answer by PersianKiller · Sep 20, 2017 at 02:07 AM
hi,as far as I know ,to click on a UI button you need an EventSystem and a Canvas,if you can see your button at other levels you have the canvas,So I guess you just need an Event System.
and what do you mean of that I've put it as child of the player (easyest way to make it move as him)
UI button's are not moving I guess you might need this
so in this case size of the canvas will match with your camera and it moves with your camera.
thanks for the answer! but I still haven't figure out how make it works... and as I said, the button work on level where it isn't a child of the player
can you see button when it is child of the player?
Your answer
Follow this Question
Related Questions
Setting localposition to a vector 3 sets everything but the x 1 Answer
Make a chioce with Selectables and button UI objects 0 Answers
Solution to Buttons don´t works after update to unity 2017 1 Answer
Unity Button Script 0 Answers
getcomponent cant find every button script in every gameobject 1 Answer