| Parameter | Description |
|---|---|
| value | The value to assign to the option’s UI field. |
bool
true if the value was successfully set; otherwise, false.
Sets a new value for the state option.
This method allows for editor-time modification of a state option's value.
It performs a type check and conversion internally. If the value cannot be cast to IStateOption.DataType, the method returns false.
This method triggers the State.DefineState method to update the state.