Class NodeDefinition | Data Flow Graph | 0.19.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Class NodeDefinition

    Base class for all node definition declarations. Provides helper functionality and base implementations around NodeDefinition.

    A NodeDefinition instance exists per existing NodeSet.

    Inheritance
    Object
    NodeDefinition
    ComponentNode
    KernelNodeDefinition<TKernelPortDefinition>
    SimulationNodeDefinition<TSimulationPortDefinition>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Unity.DataFlowGraph
    Syntax
    public abstract class NodeDefinition

    Properties

    HasStaticPortDescription

    Returns whether this node type's input and output ports are always fixed (see GetStaticPortDescription()).

    Declaration
    public bool HasStaticPortDescription { get; }
    Property Value
    Type Description
    Boolean

    Set

    The NodeSetAPI associated with this instance of this node definition.

    Declaration
    protected NodeSetAPI Set { get; }
    Property Value
    Type Description
    NodeSetAPI

    Methods

    Dispose()

    Called when disposing a NodeSet. Dispose()

    Declaration
    protected virtual void Dispose()

    EmitMessage<T, TNodeDefinition>(NodeHandle, MessageOutput<TNodeDefinition, T>, T)

    Emit a message from yourself on a port. Everything connected to it will receive your message.

    Declaration
    [Obsolete("Functionality moved to MessageContext/UpdateContext.EmitMessage", true)]
    protected void EmitMessage<T, TNodeDefinition>(NodeHandle from, MessageOutput<TNodeDefinition, T> port, in T msg)
        where TNodeDefinition : NodeDefinition
    Parameters
    Type Name Description
    NodeHandle from
    MessageOutput<TNodeDefinition, T> port
    T msg
    Type Parameters
    Name Description
    T
    TNodeDefinition

    GetPortDescription(NodeHandle)

    Retrieve the runtime type information about the given node's input and output ports (see PortDescription.

    Declaration
    public PortDescription GetPortDescription(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    PortDescription

    GetStaticPortDescription()

    Retrieve the static type information about this node type's input and output ports (see PortDescription).

    Declaration
    public PortDescription GetStaticPortDescription()
    Returns
    Type Description
    PortDescription
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if this node type does not have a static port description (HasStaticPortDescription)

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023