The returned node is the class the document names — a Scene for
"scene", a Group for "group", whatever
InstantiateSceneOptions.nodeFactory returns otherwise — so a document
written by serializeScene reloads as the same class it was saved
from.
A document with several roots is refused rather than silently reduced to its
first: use instantiateSceneNodes, which returns all of them.
Rebuilds the single-root scene held by
document.The returned node is the class the document names — a
Scenefor"scene", aGroupfor"group", whatever InstantiateSceneOptions.nodeFactory returns otherwise — so a document written by serializeScene reloads as the same class it was saved from.A document with several roots is refused rather than silently reduced to its first: use instantiateSceneNodes, which returns all of them.