gameoptionsconditionalelement - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Misc.Options
Inherits from UnityEngine.MonoBehaviour
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| 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. |
| Name | Description |
|---|---|
| InvokeConditionalEvent() | Invokes the event based on the value stored in the GameOptions (or the debug value). |
| Name | Description |
|---|---|
| Condition | Returns the used value for the condition. |