Accessing Inputs
There are three input types, each extendsSMIInput (State Machine Input):
SMIBoolcontains a.Valueproperty, a boolean that can be set to true or false.SMITriggeris a boolean that is set to true for one frame by calling the.Fire()method.SMINumbercontains a.Valueproperty, a float that can be set to any value.
Access by name
Retrieve a state machine input by name and type. Trigger:Access by index
Get the input count (length) and retrieve by index:Access all inputs
Retrieve a list of allSMIInputs:
Accessing Nested Inputs
void SetNumberInputStateAtPath(string inputName, float value, string path)float? GetNumberInputStateAtPath(string inputName, string path)void SetBooleanInputStateAtPath(string inputName, bool value, string path)bool? GetBooleanInputStateAtPath(string inputName, string path)void FireInputStateAtPath(string inputName, string path)