v3.6.1 Documentation
Fungus.ToggleChanged Class Reference

The block will execute when the user toggles on the target UI toggle object. More...

Inheritance diagram for Fungus.ToggleChanged:
Fungus.EventHandler

Public Member Functions

virtual void Start ()
 
override string GetSummary ()
 Returns custom summary text for the event handler. More...
 
- Public Member Functions inherited from Fungus.EventHandler
virtual bool ExecuteBlock ()
 The Event Handler should call this method when the event is detected to start executing the Block. More...
 

Protected Member Functions

virtual void OnToggleChanged (bool state)
 

Protected Attributes

Toggle targetToggle
 
BooleanVariable toggleState
 
- Protected Attributes inherited from Fungus.EventHandler
Block parentBlock
 

Additional Inherited Members

- Properties inherited from Fungus.EventHandler
virtual Block ParentBlock [get, set]
 The parent Block which owns this Event Handler. More...
 

Detailed Description

The block will execute when the user toggles on the target UI toggle object.

Definition at line 16 of file ToggleChanged.cs.

Member Function Documentation

◆ GetSummary()

override string Fungus.ToggleChanged.GetSummary ( )
virtual

Returns custom summary text for the event handler.

Reimplemented from Fungus.EventHandler.

Definition at line 45 of file ToggleChanged.cs.

◆ OnToggleChanged()

virtual void Fungus.ToggleChanged.OnToggleChanged ( bool  state)
protectedvirtual

Definition at line 35 of file ToggleChanged.cs.

◆ Start()

virtual void Fungus.ToggleChanged.Start ( )
virtual

Definition at line 27 of file ToggleChanged.cs.

Member Data Documentation

◆ targetToggle

Toggle Fungus.ToggleChanged.targetToggle
protected

Definition at line 19 of file ToggleChanged.cs.

◆ toggleState

BooleanVariable Fungus.ToggleChanged.toggleState
protected

Definition at line 23 of file ToggleChanged.cs.


The documentation for this class was generated from the following file: