NodeMaterialConnectionPoint

Defines a connection point for a block

Hierarchy

  • NodeMaterialConnectionPoint

Index

Constructors

constructor

Find examples in Playground

Properties

associatedVariableName

Find examples in Playground
associatedVariableName: string

Gets or sets the associated variable name in the shader

connectInputBlock

Find examples in Playground
connectInputBlock: Nullable<InputBlock>

Gets a the connected input block (if any)

connectedBlocks

Find examples in Playground
connectedBlocks: Array<NodeMaterialBlock>

Get the block connected on the endpoints of this connection (if any)

connectedPoint

Find examples in Playground

Get the other side of the connection (if any)

define

Find examples in Playground
define: string

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

endpoints

Find examples in Playground

Gets the list of connected endpoints

isConnected

Find examples in Playground
isConnected: boolean

Gets a boolean indicating that the current point is connected

isConnectedToInput

Find examples in Playground
isConnectedToInput: boolean

Gets a boolean indicating that the current point is connected to an input block

isOptional

Find examples in Playground
isOptional: boolean

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

name

Find examples in Playground
name: string

Gets or sets the connection point name

ownerBlock

Find examples in Playground
ownerBlock: NodeMaterialBlock

Get the block that owns this connection point

sourceBlock

Find examples in Playground

Get the block connected on the other side of this connection (if any)

swizzle

Find examples in Playground
swizzle: string

Gets or sets the swizzle to apply to this connection point when reading or writing

target

Find examples in Playground

Gets or sets the target of that connection point

type

Find examples in Playground

Gets or sets the connection point type (default is float)

Methods

canConnectTo

Find examples in Playground
  • Gets an boolean indicating if the current point can be connected to another point

    Parameters

    Returns boolean

    true if the connection is possible

connectTo

Find examples in Playground

disconnectFrom

Find examples in Playground

getClassName

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

    Returns string

    the class name

serialize

Find examples in Playground
  • serialize(): any
  • Serializes this point in a JSON representation

    Returns any

    the serialized point object

Generated using TypeDoc