Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

INodeOption

interface in Unity.GraphToolkit.Editor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Interface for a node option.

Node options are typed properties that appear under the node header and in the inspector when a node is selected. Unlike ports, they cannot receive values from wires. They allow the tool developers to change the behavior or topology of the node at edit time. For example, you can use node options to change the number of available ports on a node. Each option has a unique Name (which must be unique per node for identification), a DisplayName (for the UI), and a DataType that defines the type of its value. Use TryGetValue_1 to retrieve the option's value.

Properties

Property Description
DataType The data type of the node option.
DisplayName The display name of the node option shown in the UI.
Name The unique identifier of the node option.

Public Methods

Method Description
TryGetValue Tries to retrieve the value of the node option using the specified type.