Class DSLHandler<TDSLInterface> | Data Flow Graph | 0.16.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents
    • Unity.​Data​Flow​Graph
      • Buffer<T>
      • Component​Node
      • Data​Input<TDefinition, TType>
      • Data​Output<TDefinition, TType>
      • Destroy​Context
      • DSLHandler<TDSLInterface>
      • DSLHandler<TDSLInterface>.​Connection​Info
      • DSLInput<TNode​Definition, TDSLDefinition, IDSL>
      • DSLOutput<TNode​Definition, TDSLDefinition, IDSL>
      • Graph​Value<T>
      • Graph​Value​Resolver
      • IDSLHandler
      • IGraph​Kernel
      • IGraph​Kernel<TKernel​Data, TKernel​Port​Definition>
      • IIndexable​Port
      • IKernel​Data
      • IKernel​Port​Definition
      • IMsg​Handler<TMsg>
      • Init​Context
      • INode​Data
      • Input​Port​ID
      • Invalid​Node​Definition​Exception
      • ISimulation​Port​Definition
      • ITask​Port<TTask>
      • ITask​Port​Msg​Handler<TTask, TMessage>
      • Kernel​Node​Definition<TKernel​Port​Definition>
      • Managed​Attribute
      • Message​Context
      • Message​Input<TDefinition, TMsg>
      • Message​Output<TDefinition, TMsg>
      • Node​Adapter
      • Node​Adapter<TDefinition>
      • Node​Definition
      • Node​Definition<TKernel​Data, TKernel​Port​Definition, TKernel>
      • Node​Definition<TNode​Data, TKernel​Data, TKernel​Port​Definition, TKernel>
      • Node​Definition<TNode​Data, TSimulation​Port​Definition, TKernel​Data, TKernel​Port​Definition, TKernel>
      • Node​Definition<TNode​Data, TSimulation​Port​Definition>
      • Node​Definition<TSimulation​Port​Definition>
      • Node​Handle
      • Node​Handle<TDefinition>
      • Node​Interface​Link<TInterface, TDefinition>
      • Node​Interface​Link<TInterface>
      • Node​Set
      • Node​Set.​Connection​Type
      • Node​Set.​Render​Execution​Model
      • Output​Port​ID
      • Port​Array<TPort>
      • Port​Description
      • Port​Description.​Category
      • Port​Description.​Input​Port
      • Port​Description.​Output​Port
      • Render​Context
      • Render​Context.​Resolved​Port​Array<TDefinition, TType>
      • Simulation​Kernel​Node​Definition<TSimulation​Port​Definition, TKernel​Port​Definition>
      • Simulation​Node​Definition<TSimulation​Port​Definition>
      • Update​Context
    • Unity.​Data​Flow​Graph.​Code​Gen
      • NSymbol​Attribute
    • Unity.​Data​Flow​Graph.​Detail
      • Is​Buffer<T>
      • Is​Component<T>
    • Unity.​Data​Flow​Graph.​Examples.​Render​Graph
      • Animation​Mixer
      • Animation​Mixer.​Graph​Kernel
      • Animation​Mixer.​Kernel​Data
      • Animation​Mixer.​Kernel​Defs
      • Animation​Mixer.​Node​Data
      • Animation​Mixer.​Sim​Ports
      • Direction​Rotator
      • Direction​Rotator.​Graph​Kernel
      • Direction​Rotator.​Kernel​Data
      • Direction​Rotator.​Kernel​Defs
      • Direction​Rotator.​Node​Data
      • Direction​Rotator.​Sim​Ports
      • Position​Animator
      • Position​Animator.​Graph​Kernel
      • Position​Animator.​Kernel​Data
      • Position​Animator.​Kernel​Defs
      • Position​Animator.​Node​Data
      • Position​Animator.​Sim​Ports
      • Tween​Setup​Data​Flow​Graph
    • Unity.​Data​Flow​Graph.​Polynomial​Cube​Rotator​Example
      • Polynomial​Cube​Rotator
      • Polynomial​Cube​Rotator.​Adder​Node
      • Polynomial​Cube​Rotator.​Adder​Node.​Graph​Kernel
      • Polynomial​Cube​Rotator.​Adder​Node.​Kernel​Defs
      • Polynomial​Cube​Rotator.​Evaluator​Node
      • Polynomial​Cube​Rotator.​Evaluator​Node.​Graph​Kernel
      • Polynomial​Cube​Rotator.​Evaluator​Node.​Kernel​Defs
      • Polynomial​Cube​Rotator.​Instance​Data
      • Polynomial​Cube​Rotator.​Kernel​Data
      • Polynomial​Cube​Rotator.​Phase​Node
      • Polynomial​Cube​Rotator.​Phase​Node.​Graph​Kernel
      • Polynomial​Cube​Rotator.​Phase​Node.​Instance​Data
      • Polynomial​Cube​Rotator.​Phase​Node.​Kernel​Data
      • Polynomial​Cube​Rotator.​Phase​Node.​Kernel​Defs
      • Polynomial​Cube​Rotator.​Phase​Node.​Sim​Ports
      • Polynomial​Cube​Rotator.​Polynomial
      • Polynomial​Cube​Rotator.​Procedural​Generator​Node
      • Polynomial​Cube​Rotator.​Procedural​Generator​Node.​Graph​Kernel
      • Polynomial​Cube​Rotator.​Procedural​Generator​Node.​Kernel​Data
      • Polynomial​Cube​Rotator.​Procedural​Generator​Node.​Kernel​Defs
    • Unity.​Data​Flow​Graph.​Time​Example
      • Time​Example
    • Unity.​Data​Flow​Graph.​Tour
      • A_Usage_Making​ANode
      • B_Usage_Having​Instance​Data
      • C_Feature_Typed​Node​Handles
      • D_Usage_Direct​Messaging
      • D_Usage_Direct​Messaging.​My​Node
      • D_Usage_Direct​Messaging.​My​Node.​My​Instance​Data
      • D_Usage_Direct​Messaging.​My​Node.​Sim​Ports
      • E_Usage_Flowing​Messages
      • E_Usage_Flowing​Messages.​My​Node
      • E_Usage_Flowing​Messages.​My​Node.​My​Instance​Data
      • E_Usage_Flowing​Messages.​My​Node.​Sim​Ports
      • F_Usage_Simulation
      • G_Usage_Rendering
      • H_Feature_Kernel​Data
      • H_Feature_Kernel​Data.​My​Node
      • H_Feature_Kernel​Data.​My​Node.​Graph​Kernel
      • H_Feature_Kernel​Data.​My​Node.​Instance​Data
      • H_Feature_Kernel​Data.​My​Node.​Kernel​Data
      • H_Feature_Kernel​Data.​My​Node.​Kernel​Defs
      • H_Feature_Kernel​Data.​My​Node.​Sim​Ports
      • I_Usage_Data​Flow
      • I_Usage_Data​Flow.​My​Node
      • I_Usage_Data​Flow.​My​Node.​Graph​Kernel
      • I_Usage_Data​Flow.​My​Node.​Instance​Data
      • I_Usage_Data​Flow.​My​Node.​Kernel​Data
      • I_Usage_Data​Flow.​My​Node.​Kernel​Defs
      • J_Feature_Set​Data
      • J_Feature_Set​Data.​My​Node
      • J_Feature_Set​Data.​My​Node.​Graph​Kernel
      • J_Feature_Set​Data.​My​Node.​Instance​Data
      • J_Feature_Set​Data.​My​Node.​Kernel​Data
      • J_Feature_Set​Data.​My​Node.​Kernel​Defs
      • K_Feature_Graph​Values
      • K_Feature_Graph​Values.​My​Node
      • K_Feature_Graph​Values.​My​Node.​Graph​Kernel
      • K_Feature_Graph​Values.​My​Node.​Instance​Data
      • K_Feature_Graph​Values.​My​Node.​Kernel​Data
      • K_Feature_Graph​Values.​My​Node.​Kernel​Defs
      • L_Feature_Buffers
      • L_Feature_Buffers.​Instance​Data
      • L_Feature_Buffers.​Kernel​Data
      • L_Feature_Buffers.​My​Reader
      • L_Feature_Buffers.​My​Reader.​Graph​Kernel
      • L_Feature_Buffers.​My​Reader.​Kernel​Defs
      • L_Feature_Buffers.​My​Writer
      • L_Feature_Buffers.​My​Writer.​Graph​Kernel
      • L_Feature_Buffers.​My​Writer.​Kernel​Defs
      • M_Usage_Aggregates
      • M_Usage_Aggregates.​Aggregate
      • M_Usage_Aggregates.​My​Node
      • M_Usage_Aggregates.​My​Node.​Graph​Kernel
      • M_Usage_Aggregates.​My​Node.​Instance​Data
      • M_Usage_Aggregates.​My​Node.​Kernel​Data
      • M_Usage_Aggregates.​My​Node.​Kernel​Defs
      • N_Feature_Port​Arrays
      • N_Feature_Port​Arrays.​My​Node
      • N_Feature_Port​Arrays.​My​Node.​Graph​Kernel
      • N_Feature_Port​Arrays.​My​Node.​Instance​Data
      • N_Feature_Port​Arrays.​My​Node.​Kernel​Data
      • N_Feature_Port​Arrays.​My​Node.​Kernel​Defs
      • N_Feature_Port​Arrays.​My​Node.​Sim​Ports
      • O_Usage_Weak​Typing
      • O_Usage_Weak​Typing.​My​Node
      • O_Usage_Weak​Typing.​My​Node.​Instance​Data
      • O_Usage_Weak​Typing.​My​Node.​Sim​Ports
      • P_Usage_Port​Forwarding
      • P_Usage_Port​Forwarding.​Child​Node
      • P_Usage_Port​Forwarding.​Child​Node.​Instance​Data
      • P_Usage_Port​Forwarding.​Child​Node.​Sim​Ports
      • P_Usage_Port​Forwarding.​Parent​Node
      • P_Usage_Port​Forwarding.​Parent​Node.​Instance​Data
      • P_Usage_Port​Forwarding.​Parent​Node.​Sim​Ports
      • Q_Usage_Feedback​Connections
      • Q_Usage_Feedback​Connections.​Add​Node
      • Q_Usage_Feedback​Connections.​Add​Node.​Graph​Kernel
      • Q_Usage_Feedback​Connections.​Add​Node.​Kernel​Data
      • Q_Usage_Feedback​Connections.​Add​Node.​Kernel​Defs
      • Q_Usage_Feedback​Connections.​Delay​Line​Node
      • Q_Usage_Feedback​Connections.​Delay​Line​Node.​Graph​Kernel
      • Q_Usage_Feedback​Connections.​Delay​Line​Node.​Kernel​Data
      • Q_Usage_Feedback​Connections.​Delay​Line​Node.​Kernel​Defs
    • Unity.​Data​Flow​Graph
    • DSLHandler<TDSLInterface>

    Class DSLHandler<TDSLInterface>

    Connection handler for DSLInput<TNodeDefinition, TDSLDefinition, IDSL> and DSLOutput<TNodeDefinition, TDSLDefinition, IDSL> port types. The implementation is invoked whenever connections on DSL ports tied to this handler are made or broken.

    Inheritance
    Object
    DSLHandler<TDSLInterface>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.DataFlowGraph
    Syntax
    public abstract class DSLHandler<TDSLInterface> : IDSLHandler, IDisposable where TDSLInterface : class
    Type Parameters
    Name Description
    TDSLInterface

    The user defined interface which NodeDefinition<TNodeData, TSimulationPortDefinition>s must implement so that the DSLHandler<TDSLInterface> can interact with them.

    Methods

    Connect(DSLHandler<TDSLInterface>.ConnectionInfo, DSLHandler<TDSLInterface>.ConnectionInfo)

    Declaration
    protected abstract void Connect(DSLHandler<TDSLInterface>.ConnectionInfo left, DSLHandler<TDSLInterface>.ConnectionInfo right)
    Parameters
    Type Name Description
    DSLHandler.ConnectionInfo<> left
    DSLHandler.ConnectionInfo<> right

    Connect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)

    Declaration
    public void Connect(NodeSet set, NodeHandle source, OutputPortID sourcePort, NodeHandle destination, InputPortID destinationPort)
    Parameters
    Type Name Description
    NodeSet set
    NodeHandle source
    OutputPortID sourcePort
    NodeHandle destination
    InputPortID destinationPort
    Implements
    IDSLHandler.Connect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)

    Disconnect(DSLHandler<TDSLInterface>.ConnectionInfo, DSLHandler<TDSLInterface>.ConnectionInfo)

    Declaration
    protected abstract void Disconnect(DSLHandler<TDSLInterface>.ConnectionInfo left, DSLHandler<TDSLInterface>.ConnectionInfo right)
    Parameters
    Type Name Description
    DSLHandler.ConnectionInfo<> left
    DSLHandler.ConnectionInfo<> right

    Disconnect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)

    Declaration
    public void Disconnect(NodeSet set, NodeHandle source, OutputPortID sourcePort, NodeHandle destination, InputPortID destinationPort)
    Parameters
    Type Name Description
    NodeSet set
    NodeHandle source
    OutputPortID sourcePort
    NodeHandle destination
    InputPortID destinationPort
    Implements
    IDSLHandler.Disconnect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()
    In This Article
    • Methods
      • Connect(DSLHandler<TDSLInterface>.ConnectionInfo, DSLHandler<TDSLInterface>.ConnectionInfo)
      • Connect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)
      • Disconnect(DSLHandler<TDSLInterface>.ConnectionInfo, DSLHandler<TDSLInterface>.ConnectionInfo)
      • Disconnect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)
      • Dispose()
    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