EmotionCanvas
Module: Inworld.RPM. Namespace: Inworld.Sample.RPM.
This is the script used in the prefab for switch buttons.
Inspector Variables
Variable | Description |
---|---|
OnSprite | The sprite for the on state. |
OffSprite | The sprite for the off state. |
Image | The Image component it's processing. |
API
Function | Description | Parameters |
---|---|---|
CheckBackground | Switch the sprite based on this toggle's status. | isOn: the incoming status of the toggle. |