conditionaleventswitcher - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Misc
Inherits from UnityEngine.MonoBehaviour
Allows switching between two events based on a condition.
public class ConditionalEventSwitcher : MonoBehaviour| Name | Description |
|---|---|
| OnConditionChanged | Emitted always with the value of Condition. |
| OnConditionChangedNegated | Emitted always with the NEGATED value of Condition. |
| OnFalseEvent | Emitted if Condition is false. |
| OnTrueEvent | Emitted if Condition is true. |
| Name | Description |
|---|---|
| InvokeConditionalEvent() | Invokes the conditional events manually. |
| ToggleConditional() | Toggles Condition. |
| Name | Description |
|---|---|
| AutoEmitWhenChanged | If enabled will automatically invoke the respective events when changing Condition. |
| Condition | Condition to switch. |
| Description | A description of the condition. No further use. |