Unity 5.3 UI Button wont set Select state via script after the parent has been set inactive
Hi,
So I have a Panel that contains 2 buttons (for a pause menu). By default the panel is not active.
Then when the pause code triggers it sets the panel to active (setActive(true))
And then I call Select() on the button to ensure it is the selected element in the navigation.
All this works fine, however, when you unpause, then setActive(false) is called on the panel and when I pause again (and setActive(true) is called again)
the button.Select() code does not select the button (i.e. it doesn't highlight the button).
Any ideas why this would be the case?
Your answer
Follow this Question
Related Questions
Best way to simplify this code 1 Answer
Better way to edit RawImage texture data?,Better way to edit a RawImage texture? 0 Answers
Pause menu done exactly according to tutorial doesen't work 2 Answers
How would you save anti aliasing or v-sync stuff that are like QualitySettings.antiAliasing = 2; 0 Answers
How to get access to other's script var with increment? 0 Answers