TrySetValue<T>(T)
Sets a new value for the state option.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
bool TrySetValue<T>(T value)
Parameters
Returns
Type | Description |
|---|---|
| bool | |
Remarks
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 . This method triggers the State.DefineState method to update the state.
false