Having issues with toggles not being able to changed via script. The logical field does change, but the visible checkmark doesn’t in script. Why is this?
I tried fiddling with a toggle in play mode to observe how the state of the whole game object changes in the inspector, but the only observation I’m able to make is that only the boolean field changes to match what the script sets it to (as expected). I see nothing else happening that would suggest the checkmark is visible or not. The Image component doesn’t turn off, the sprint doesn’t change, etc… So what behind the scenes magic is Unity pulling to conduct this behaviour?
I found this post that answers my question (sort of), but it was posted almost 5 years ago. I’m checking to see if this is still the case. If so, why on earth is the internal Toggle code changing the appearance of the check mark like that in Unity 2018.4.4???
I’m not sure how to apply the code given in the answer to that post. What is the full scope of those variables being used and how can I use them?