TrySetValue<T>(T)
Sets a new value for the node option.
Read time 1 minuteLast updated 6 days ago
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 node option's value. It performs a type check and conversion internally. If the value cannot be cast to INodeOption.DataType, the method returns . This method triggers the Node.DefineNode method to update the node visual.
false