conditionaleventswitcher - eisclimber/ExPresS-XR GitHub Wiki

ConditionalEventSwitcher

Class in ExPresSXR.Misc

Inherits from UnityEngine.MonoBehaviour

Summary

Allows switching between two events based on a condition.

public class ConditionalEventSwitcher : MonoBehaviour

Fields

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.

Methods

Name Description
InvokeConditionalEvent() Invokes the conditional events manually.
ToggleConditional() Toggles Condition.

Properties

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.
⚠️ **GitHub.com Fallback** ⚠️