Class SerializedSceneObject

Serializes the current state of a scene object and allows that state to be restored. The advantage of using this class versus normal serialization is that the deserialization happens into the original scene object, instead of creating a new scene object.

Hierarchy

  • FrameworkObject
    • SerializedSceneObject

Constructors

Methods

Constructors

  • Serializes the current state of the provided scene object.

    Parameters

    • sceneObject: SceneObject

      Object whose state to serialize.

    • Optionalhierarchy: boolean

      If true all children of the provided scene object will be serialized as well, otherwise just the provided object will.

    • OptionalisInternalConstructor: boolean

    Returns SerializedSceneObject

Methods

  • Restores the scene object to the state as it was when this object was created. If the scene object was deleted since, it will be resurrected.

    Parameters

    • objectManagerOrSceneInstance: SceneInstance | SceneNodeManager

      If SceneNodeManager: The SceneNodeManager to restore the object on.

      If SceneInstance: The SceneInstance to restore the object on.

    Returns void