Skip to main content

EmotionCanvas

Module: Inworld.RPM. Namespace: Inworld.Sample.RPM.

This is the script used in the prefab for switch buttons.

Inspector Variables

VariableDescription
OnSpriteThe sprite for the on state.
OffSpriteThe sprite for the off state.
ImageThe Image component it's processing.

API

FunctionDescriptionParameters
CheckBackgroundSwitch the sprite based on this toggle's status.isOn: the incoming status of the toggle.