[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.GraphToolkit.Editor.INodeOption.html [Back]  [Original]

Unity - Scripting API: INodeOption
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    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
    Your name Your email Suggestion* Submit suggestion

    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 INodeOption.Name (which must be unique per node for identification), a INodeOption.DisplayName (for the UI), and a INodeOption.DataType that defines the type of its value. Use INodeOption.TryGetValue 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.
    Tooltip The text displayed when hovering over the node option's display name.

    Public Methods

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

    Web Proxy Viewer  |  New URL  |  Original Page