Class NodeMaterialConnectionPointCustomObject<T>
Type parameters
Hierarchy
-
NodeMaterialConnectionPoint
- NodeMaterialConnectionPointCustomObject
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new connection point
Parameters
-
name: string
defines the connection point name
-
ownerBlock: NodeMaterialBlock
defines the block hosting this connection point
-
direction: NodeMaterialConnectionPointDirection
defines the direction of the connection point
-
_blockType: {}
-
_blockName: string
-
Optional _nameForCheking: string | undefined
Returns NodeMaterialConnectionPointCustomObject
-
Properties
accepted Connection Point TypesSearch playground for acceptedConnectionPointTypes
Gets or sets the additional types supported by this connection point
defineSearch playground for define
Gets or sets a string indicating that this uniform must be defined under a #ifdef
display NameSearch playground for displayName
Gets or sets the connection point name
excluded Connection Point TypesSearch playground for excludedConnectionPointTypes
Gets or sets the additional types excluded by this connection point
exposed Port PositionSearch playground for exposedPortPosition
Gets or sets number indicating the position that the port is exposed to on a frame
is Exposed OnFrameSearch playground for isExposedOnFrame
Gets or sets a boolean indicating that this connection point is exposed on a frame
is OptionalSearch playground for isOptional
Gets or sets a boolean indicating that this connection point can be omitted
nameSearch playground for name
Gets or sets the connection point name
need Dual Direction ValidationSearch playground for needDualDirectionValidation
Indicates that this connection point needs dual validation before being connected to another point
on Connection ObservableSearch playground for onConnectionObservable
Observable triggered when this point is connected
Accessors
associated Variable Name
-
Gets or sets the associated variable name in the shader
Returns string
-
Gets or sets the associated variable name in the shader
Parameters
-
value: string
Returns any
-
connect Input Block
-
Gets a the connected input block (if any)
Returns Nullable<InputBlock>
connected Blocks
-
Get the block connected on the endpoints of this connection (if any)
Returns Array<NodeMaterialBlock>
connected Point
-
Get the other side of the connection (if any)
Returns Nullable<NodeMaterialConnectionPoint>
direction
-
Gets the direction of the point
Returns NodeMaterialConnectionPointDirection
endpoints
-
Gets the list of connected endpoints
Returns NodeMaterialConnectionPoint[]
has Endpoints
-
Gets a boolean indicating if that output point is connected to at least one input
Returns boolean
inner Type
-
Get the inner type (ie AutoDetect for instance instead of the inferred one)
Returns NodeMaterialBlockConnectionPointTypes
is Connected
-
Gets a boolean indicating that the current point is connected to another NodeMaterialBlock
Returns boolean
is Connected InFragment Shader
-
Gets a boolean indicating that this connection will be used in the fragment shader
Returns boolean
is Connected InVertex Shader
-
Gets a boolean indicating that this connection will be used in the vertex shader
Returns boolean
is Connected ToInput Block
-
Gets a boolean indicating that the current point is connected to an input block
Returns boolean
owner Block
-
Get the block that owns this connection point
Returns NodeMaterialBlock
source Block
-
Get the block connected on the other side of this connection (if any)
Returns Nullable<NodeMaterialBlock>
target
-
Gets or sets the target of that connection point
Returns NodeMaterialBlockTargets
-
Gets or sets the target of that connection point
Parameters
-
value: NodeMaterialBlockTargets
Returns any
-
type
-
Gets or sets the connection point type (default is float)
Returns NodeMaterialBlockConnectionPointTypes
-
Gets or sets the connection point type (default is float)
Parameters
Returns any
Methods
can Connect ToSearch playground for canConnectTo
-
Gets a boolean indicating if the current point can be connected to another point
Parameters
-
connectionPoint: NodeMaterialConnectionPoint
defines the other connection point
Returns boolean
a boolean
-
check Compatibility StateSearch playground for checkCompatibilityState
-
Gets a number indicating if the current point can be connected to another point
Parameters
-
connectionPoint: NodeMaterialConnectionPoint
defines the other connection point
Returns NodeMaterialConnectionPointCompatibilityStates
a number defining the compatibility state
-
connect ToSearch playground for connectTo
-
Connect this point to another connection point
Parameters
-
connectionPoint: NodeMaterialConnectionPoint
defines the other connection point
-
Optional ignoreConstraints: boolean
defines if the system will ignore connection type constraints (default is false)
Returns NodeMaterialConnectionPoint
the current connection point
-
create Custom Input BlockSearch 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
disconnect FromSearch playground for disconnectFrom
-
Disconnect this point from one of his endpoint
Parameters
-
endpoint: NodeMaterialConnectionPoint
defines the other connection point
Returns NodeMaterialConnectionPoint
the current connection point
-
disposeSearch playground for dispose
-
Release resources
Returns void
get Class NameSearch playground for getClassName
-
Gets the current class name e.g. "NodeMaterialConnectionPoint"
Returns string
the class name
serializeSearch playground for serialize
-
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 Are Equivalent TypesSearch playground for AreEquivalentTypes
-
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
-
Defines a connection point to be used for points with a custom object type