API

Class NodeMaterialConnectionPoint

Defines a connection point for a block

Hierarchy (View Summary)

Index
acceptedConnectionPointTypes: NodeMaterialBlockConnectionPointTypes[] = []

Gets or sets the additional types supported by this connection point

define: string

Gets or sets a string indicating that this uniform must be defined under a #ifdef

displayName: string

Gets or sets the connection point name

excludedConnectionPointTypes: NodeMaterialBlockConnectionPointTypes[] = []

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<NodeMaterialConnectionPoint> = ...

Observable triggered when this point is connected

onDisconnectionObservable: Observable<NodeMaterialConnectionPoint> = ...

Observable triggered when this point is disconnected

onTypeChangedObservable: Observable<NodeMaterialBlockConnectionPointTypes> = ...

Observable triggered when the type of the connection point is changed

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

    Parameters

    • mask: number

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

    Returns void