| Parameter | Description |
|---|---|
| context | Provides methods for defining state options. |
Called during State.DefineState to define the options available on the state.
Override this method to add options using the provided IOptionDefinitionContext. The options of a state only appear in the graph inspector when the state is selected: they are never drawn on the state in the state machine view.
protected override void OnDefineOptions(IOptionDefinitionContext context) { context.AddOption<float>("speed") .WithDisplayName("Speed") .WithTooltip("The speed at which the state runs.") .WithDefaultValue(1.0f); }