gameoptionsconditionalelement - eisclimber/ExPresS-XR GitHub Wiki

GameOptionsConditionalElement

Class in ExPresSXR.Misc.Options

Inherits from UnityEngine.MonoBehaviour

Summary

This component allows triggering events based on bool values stored in GameOptions. In order to use the value, the value must be added to GameOptionConditionals and their value must be returned by GameOptions.GetValueOfConditional().

public class GameOptionsConditionalElement : MonoBehaviour

Fields

Name Description
OnFalseEvent Event invoked if the condition is false.
OnNegatedValueEvent Event invoked with the current condition but negated.
OnTrueEvent Event invoked if the condition is true.
OnValueEvent Event invoked with the current condition.

Methods

Name Description
InvokeConditionalEvent() Invokes the event based on the value stored in the GameOptions (or the debug value).

Properties

Name Description
Condition Returns the used value for the condition.
⚠️ **GitHub.com Fallback** ⚠️