Hi, Im trying to swap sprites when the toggle in on or off.
I have a button with 2 child "icon" sprites. On the button I have 2 UIToggles which I set the sprite to one of each icon. I set one of the toggles starting state to true.
Now to control all of this I have Get both of the toggles and compare their "activeSprite" to my own starting sprite so I know which one is the "on" and which is the "off" sprite.
Is there a simpler way to achieve this?
Thanks