Class Serializer
Serializes graph elements into lightweight JSON payloads that also carry the concrete runtime type needed for reconstruction.
public static class Serializer
- Inheritance
-
Serializer
- Inherited Members
Properties
- NullElement
Returns a sentinel serialized value representing an empty element.
- target
Unity object associated with warning logs emitted by the batch serialize and deserialize helpers.
Methods
- Deserialize<T>(JsonObject, params object[])
Reconstructs one object from its serialized wrapper and optional constructor arguments.
- Deserialize<T>(IEnumerable<JsonObject>, params object[])
Deserializes a sequence of serialized wrappers, skipping failed items and logging warnings instead of aborting the whole batch.
- GetTypeAsSerializedData(Type)
Converts a runtime type into the compact type record stored inside Serializer.JsonObject.
- GetTypeFromSerializedData(TypeInfo)
Resolves a runtime type by searching the currently loaded assemblies for the stored full type name.
- Serialize<T>(IEnumerable<T>)
Serializes a sequence into a list of Serializer.JsonObject wrappers, skipping failed items and logging warnings instead of aborting the whole batch.
- Serialize<T>(T)
Serializes one object into a Serializer.JsonObject that preserves both its JSON payload and concrete type.