API

Class NodeParticleConnectionPoint

Defines a connection point for a block

Index
acceptedConnectionPointTypes: NodeParticleBlockConnectionPointTypes[] = []

Gets or sets the additional types supported by this connection point

defaultValue: any = null

Gets the default value used for this point at creation time

displayName: string

Gets or sets the connection point display name

excludedConnectionPointTypes: NodeParticleBlockConnectionPointTypes[] = []

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

onConnectionObservable: Observable<NodeParticleConnectionPoint> = ...

Observable triggered when this point is connected

onDisconnectionObservable: Observable<NodeParticleConnectionPoint> = ...

Observable triggered when this point is disconnected

value: any = null

Gets or sets the default value used for this point if nothing is connected

valueMax: any = null

Gets or sets the max value accepted for this point if nothing is connected

valueMin: any = null

Gets or sets the min value accepted for this point if nothing is connected

  • 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