Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeMaterialConnectionPointCustomObject<T>

Defines a connection point to be used for points with a custom object type

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

acceptedConnectionPointTypesSearch playground for acceptedConnectionPointTypes

acceptedConnectionPointTypes: NodeMaterialBlockConnectionPointTypes[]

Gets or sets the additional types supported by this connection point

defineSearch playground for define

define: string

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

displayNameSearch playground for displayName

displayName: string

Gets or sets the connection point name

excludedConnectionPointTypesSearch playground for excludedConnectionPointTypes

excludedConnectionPointTypes: NodeMaterialBlockConnectionPointTypes[]

Gets or sets the additional types excluded by this connection point

exposedPortPositionSearch playground for exposedPortPosition

exposedPortPosition: number

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

isExposedOnFrameSearch playground for isExposedOnFrame

isExposedOnFrame: boolean

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

isOptionalSearch playground for isOptional

isOptional: boolean

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

nameSearch playground for name

name: string

Gets or sets the connection point name

needDualDirectionValidationSearch playground for needDualDirectionValidation

needDualDirectionValidation: boolean

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

onConnectionObservableSearch playground for onConnectionObservable

onConnectionObservable: Observable<NodeMaterialConnectionPoint>

Observable triggered when this point is connected

Accessors

associatedVariableName

  • get associatedVariableName(): string
  • set associatedVariableName(value: string): any

connectInputBlock

connectedBlocks

connectedPoint

direction

endpoints

hasEndpoints

  • get hasEndpoints(): boolean
  • Gets a boolean indicating if that output point is connected to at least one input

    Returns boolean

innerType

isConnected

  • get isConnected(): boolean
  • Gets a boolean indicating that the current point is connected to another NodeMaterialBlock

    Returns boolean

isConnectedInFragmentShader

  • get isConnectedInFragmentShader(): boolean

isConnectedInVertexShader

  • get isConnectedInVertexShader(): boolean

isConnectedToInputBlock

  • get isConnectedToInputBlock(): boolean

ownerBlock

sourceBlock

target

type

Methods

canConnectToSearch playground for canConnectTo

checkCompatibilityStateSearch playground for checkCompatibilityState

connectToSearch playground for connectTo

createCustomInputBlockSearch playground for createCustomInputBlock

  • 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<[NodeMaterialBlock, string]>

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

disconnectFromSearch playground for disconnectFrom

disposeSearch playground for dispose

  • dispose(): void

getClassNameSearch playground for getClassName

  • getClassName(): string
  • Gets the current class name e.g. "NodeMaterialConnectionPoint"

    Returns string

    the class name

serializeSearch playground for serialize

  • serialize(isInput?: boolean): any
  • Serializes this point in a JSON representation

    Parameters

    • Optional isInput: boolean

      defines if the connection point is an input (default is true)

    Returns any

    the serialized point object

Static AreEquivalentTypesSearch playground for AreEquivalentTypes

  • AreEquivalentTypes(type1: number, type2: number): boolean
  • Checks if two types are equivalent

    Parameters

    • type1: number

      type 1 to check

    • type2: number

      type 2 to check

    Returns boolean

    true if both types are equivalent, else false

Legend

  • Constructor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Static method