📄 threejs/Core/Loaders/NodeLoader

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


title: NodeLoader category: Core layout: docs

NodeLoader

A loader for loading node objects in the three.js JSON Object/Scene format.

Constructor

new NodeLoader( manager : LoadingManager )

Constructs a new node loader.

manager | A reference to a loading manager.
---|---

Properties

.nodes : Object.<string, Node.constructor>

Represents a dictionary of node types.

.textures : Object.<string, Texture>

Represents a dictionary of textures.

Methods

.createNodeFromType( type : string ) : Node

Creates a node object from the given type.

type | The node type.
---|---

Returns: The created node instance.

.load( url : string, onLoad : function, onProgress : function, onError : function )

Loads the node definitions from the given URL.

url | The path/URL of the file to be loaded.
---|---
onLoad | Will be called when load completes.
onProgress | Will be called while load progresses.
onError | Will be called when errors are thrown during the loading process.

Overrides: Loader#load

.parse( json : Object ) : Node

Parses the node from the given JSON.

json | The JSON definition | type | The node type.
---|---
uuid | The node UUID.
nodes | The node dependencies.
meta | The meta data.

Overrides: Loader#parse

Returns: The parsed node.

.parseNodes( json : Array.<Object> ) : Object.<string, Node>

Parse the node dependencies for the loaded node.

json | The JSON definition
---|---

Returns: A dictionary with node dependencies.

.setNodes( value : Object.<string, Node.constructor> ) : NodeLoader

Defines the dictionary of node types.

value | The node library defined as <classname,class>.
---|---

Returns: A reference to this loader.

.setTextures( value : Object.<string, Texture> ) : NodeLoader

Defines the dictionary of textures.

value | The texture library defines as <uuid,texture>.
---|---

Returns: A reference to this loader.

Source

src/loaders/nodes/NodeLoader.js