class
SerializedManagedObject
Inherits:
IScriptExportable
Allows creation of a serialized object from a managed object.
The managed object can be a ManagedComponent, ManagedResource, or any managed object type marked with SerializeObject attribute. The managed object may also be a wrapper of a native type that derives from IReflectable, in which case the native type will be serialized using the native RTTI mechanism.
Public
Constructors
SerializedManagedObject
Methods
staticCreate
static SPtr<SerializedManagedObject> Create(MonoObject *scriptObject)
Serializes the provided script object.
Returns the serialized object or null if the object cannot be serialized.
Deserialize
MonoObject *Deserialize() const
Deserializes the data stored in this object back into the managed object.
Components and resource cannot be deserialized in this way.
GetNativeSerializedObject
SPtr<IReflectable> GetNativeSerializedObject() const
Returns the serialized object wrapped by this object.
Private
Fields
mSerializedObject
SPtr<IReflectable> mSerializedObject