Serializes the current state of the provided scene object.
Object whose state to serialize.
Optionalhierarchy: booleanIf true all children of the provided scene object will be serialized as well, otherwise just the provided object will.
OptionalisInternalConstructor: booleanRestores 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.
If SceneNodeManager: The SceneNodeManager to restore the object on.
If SceneInstance: The SceneInstance to restore the object on.
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.