Hi everyone,
I'm using 3.4.8 and I have a panel that is set active through another menu. In this panel I have multiple children that are panels each with 2 buttons and a couple other sprites/text areas.
When the main panel is activated, a script on it sets all of the UIButton.isEnabled values to false. I have checked by outputting these values and they are being set properly. However, the button images stay set as the 'Normal' image instead of the 'Disabled' image. These are also set correctly on the buttons.
I know the functions work because when I close that panel and open it up again, the buttons have updated to the correct 'Disabled' image, I also output all of the relevant variables and they are correct. The same panel is later updated through the script so that the buttons should show the 'Normal' image. I can see through another set of debug messages that the correct functions are being called and the isEnabled variables are being correctly set, but they do not update their images.
I have tried using the following panel functions to see if the child buttons will update...
Refresh()
SetDirty()
RebuildAllDrawCalls()
None of them help. Any ideas?
Thanks!