Gets the missing serialization information for the specified object.
The information, or null, if the object does not carry serialization information.
StaticacquireAcquires the missing type information from source into the target object. This also removes the references from the source object.
The target object to inject the missing type information to.
target
StaticacquireAcquires the missing type information from source object.
The object to source the missing type information from.
Type information about the missing type.
StaticcloneClones the specified object. Non-serializable types and fields are ignored in clone. A deep copy is performed on all serializable elements except for resources or game objects.
Non-null reference to the object to clone. Object type must be serializable.
Deep copy of the original object.
StaticcompareCompares the specified objects using their serialization data. Non-serializable types and fields are ignored in compare. A deep compare is performed on all serializable elements except for resources or game objects.
A reference to the first object to be compared. Object type must be serializable.
A reference to the second object to be compared. Object type must be serializable.
True if both objects contain the same data; false otherwise.
StaticcompareCompares the specified scene objects using their serialization data. A deep compare is performed on all serializable elements of the scene objects, it's children and components.
A reference to the first scene object to be compared.
A reference to the second scene object to be compared.
True if both objects contain the same data; false otherwise.
StaticcreateStaticdeserializeDeserializes a binary byte array into a concrete TypeScript object.
The type of object to be deserialized.
The binary data that represents the object.
Optionalmanager: SceneNodeManagerOptional scene node manager to resolve scene object handles during deserialization.
A newly created instance with the contents of data deserialized or null.
Deserializes a datastream into a concrete TypeScript object.
The type of object to be deserialized.
The stream that contains the object at the current cursor position.
Optionalmanager: SceneNodeManagerOptional scene node manager to resolve scene object handles during deserialization.
A newly created instance with the contents of dataStream deserialized or null.
StaticisStaticserializeSerializes an object into a binary byte array. This array can be deserialized using deserialize.
The object to be serialized into a binary byte array.
A byte array that contains a binary representation of instance.
Serializes an object into a datastream. The datastream can be deserialized using deserialize.
The object to be serialized into the dataStream.
The stream to serialize the object into.
The number of bytes written into the dataStream, or null on failure.
StatictransferTransfers the missing type information from source into the target object. This also removes the references from the source object.
After transfer, the source will have its missing data fields removed, and they will be transferred to target.
The target object to inject the missing type information to.
The object to source the missing type information from.
target
The SerializationUtility class provides utility methods dealing with object serialization and diff generation.
Another way to create serialized object representations is using the SerializedObject.