📄 threejs/Core/Nodes/NodeAttribute

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


title: NodeAttribute category: Core layout: docs

NodeAttribute

NodeBuilder is going to create instances of this class during the build process of nodes. They represent the final shader attributes that are going to be generated by the builder. Arrays of node attributes is maintained in NodeBuilder#attributes and NodeBuilder#bufferAttributes for this purpose.

Constructor

new NodeAttribute( name : string, type : string, node : Node )

Constructs a new node attribute.

name | The name of the attribute.
---|---
type | The type of the attribute.
node | An optional reference to the node. Default is null.

Properties

.isNodeAttribute : boolean (readonly)

This flag can be used for type testing.

Default is true.

.name : string

The name of the attribute.

.node : Node

An optional reference to the node.

Default is null.

.type : string

The type of the attribute.

Source

src/nodes/core/NodeAttribute.js