Class SwitchParameter
Inheritance
SwitchParameter
Assembly: NeoFPS.dll
Syntax
[MotionGraphElement("Switch", "My Switch")]
public class SwitchParameter : MotionGraphParameter, IMotionGraphElement
Fields
onValueChanged
Declaration
public UnityAction<bool> onValueChanged
Field Value
| Type |
Description |
| UnityAction<System.Boolean> |
|
Properties
on
Declaration
public bool on { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
AddBlocker()
Declaration
Hold(Boolean)
Declaration
public void Hold(bool hold = true)
Parameters
| Type |
Name |
Description |
| System.Boolean |
hold |
|
RemoveBlocker()
Declaration
public void RemoveBlocker()
ResetValue()
Declaration
public override void ResetValue()
Overrides
Declaration
public void SetInput(bool toggle, bool hold)
Parameters
| Type |
Name |
Description |
| System.Boolean |
toggle |
|
| System.Boolean |
hold |
|
Toggle()
Declaration
Implements