Skip to content

ObjectLoader

new ObjectLoader(manager?)

THREE equivalent: THREE.ObjectLoader

Loads scene-graph objects from JSON. Handles Node, Group, and Scene types with recursive child parsing.

Method Description
load(url: string, onLoad?: Function, onProgress?: Function, onError?: Function): void Fetches JSON and passes the parsed Node hierarchy to onLoad.
parse(json: object): Node Parses a JSON scene descriptor into a Node tree.