Skip to content

five-on-it / apps/tools/src/editor-project / readEditorScene

Function: readEditorScene() ​

readEditorScene(sceneDir): Promise<SceneDoc>

Defined in: apps/tools/src/editor-project.ts:427

Reads an editor scene folder back as a scene document: the meshes with their instances, materials and geometry (the binary files loaded, so every mesh carries its triangles and colours) and the transform nodes, parents resolved (metadata.parentId is the parent's uniqueId). A mesh's geometry is the file its delayLoadingFile names (relative to the project), failing that the one of that name in the scene's own geometries/ folder.

Parameters ​

sceneDir ​

string

Returns ​

Promise<SceneDoc>