API

Class NodeRenderGraphConnectionPoint

Defines a connection point for a block

Index
acceptedConnectionPointTypes: NodeRenderGraphBlockConnectionPointTypes[] = []

Gets or sets the additional types supported by this connection point

displayName: string

Gets or sets the connection point display name

excludedConnectionPointTypes: NodeRenderGraphBlockConnectionPointTypes[] = []

Gets or sets the additional types excluded by this connection point

exposedPortPosition: number = -1

Gets or sets number indicating the position that the port is exposed to on a frame

isExposedOnFrame: boolean = false

Gets or sets a boolean indicating that this connection point is exposed on a frame

isOptional: boolean

Gets or sets a boolean indicating that this connection point can be omitted

name: string

Gets or sets the connection point name

needDualDirectionValidation: boolean = false

Indicates that this connection point needs dual validation before being connected to another point

onConnectionObservable: Observable<NodeRenderGraphConnectionPoint> = ...

Observable triggered when this point is connected

onDisconnectionObservable: Observable<NodeRenderGraphConnectionPoint> = ...

Observable triggered when this point is disconnected

value: any

The value stored in this connection point

  • Fills the list of excluded connection point types with all types other than those passed in the parameter

    Parameters

    • mask: number

      Types (ORed values of NodeRenderGraphBlockConnectionPointTypes) that are allowed, and thus will not be pushed to the excluded list

    Returns void

  • Creates a block suitable to be used as an input for this input point. If null is returned, a block based on the point type will be created.

    Returns Nullable<[NodeRenderGraphBlock, string]>

    The returned string parameter is the name of the output point of NodeRenderGraphBlock (first parameter of the returned array) that can be connected to the input