📄 threejs/Core/Nodes/AssignNode

File: AssignNode.md | Updated: 11/15/2025


title: AssignNode category: Core layout: docs

AssignNode

These node represents an assign operation. Meaning a node is assigned to another node.

Constructor

new AssignNode( targetNode : Node, sourceNode : Node )

Constructs a new assign node.

targetNode | The target node.
---|---
sourceNode | The source type.

Properties

.isAssignNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

.sourceNode : Node

The source node.

.targetNode : Node

The target node.

Methods

.hasDependencies() : boolean

Whether this node is used more than once in context of other nodes. This method is overwritten since it always returns false (assigns are unique).

Overrides: TempNode#hasDependencies

Returns: A flag that indicates if there is more than one dependency to other nodes. Always false.

.needsSplitAssign( builder : NodeBuilder ) : boolean

Whether a split is required when assigning source to target. This can happen when the component length of target and source data type does not match.

builder | The current node builder.
---|---

Returns: Whether a split is required when assigning source to target.

Source

src/nodes/core/AssignNode.js