Class SerializeUtility
Inheritance
SerializeUtility
Syntax
public static class SerializeUtility
Fields
Declaration
public static int CurrentFileFormatVersion
Field Value
Methods
DeserializeWorld(ExclusiveEntityTransaction, BinaryReader, Object[])
Declaration
public static void DeserializeWorld(ExclusiveEntityTransaction manager, BinaryReader reader, object[] unityObjects = null)
Parameters
GetSceneSectionEntity(Int32, EntityManager, ref EntityQuery, Boolean)
Gets the entity representing the scene section with the index passed in.
If createIfMissing is true the section entity is created if it doesn't already exist.
Metadata components added to this section entity will be serialized into the entity scene header.
At runtime these components will be added to the scene section entities when the scene is resolved.
Only struct IComponentData components without BlobAssetReferences or Entity members are supported.
Declaration
public static Entity GetSceneSectionEntity(int sectionIndex, EntityManager manager, ref EntityQuery cachedSceneSectionEntityQuery, bool createIfMissing = true)
Parameters
Type |
Name |
Description |
Int32 |
sectionIndex |
The section index for which to get the scene section entity
|
EntityManager |
manager |
The entity manager to which the entity belongs
|
EntityQuery |
cachedSceneSectionEntityQuery |
The EntityQuery used to find the entity. Initially an null query should be passed in,
the same query can the be passed in for subsequent calls to avoid recreating the query
|
Boolean |
createIfMissing |
If true the section entity is created if it doesn't already exist. If false Entity.Null is returned for missing section entities
|
Returns
Type |
Description |
Entity |
The entity representing the scene section
|
SerializeWorld(EntityManager, BinaryWriter)
Declaration
public static void SerializeWorld(EntityManager entityManager, BinaryWriter writer)
Parameters
SerializeWorld(EntityManager, BinaryWriter, out Object[])
Declaration
public static void SerializeWorld(EntityManager entityManager, BinaryWriter writer, out object[] referencedObjects)
Parameters
SerializeWorld(EntityManager, BinaryWriter, out Object[], NativeArray<EntityRemapUtility.EntityRemapInfo>)
Declaration
public static void SerializeWorld(EntityManager entityManager, BinaryWriter writer, out object[] referencedObjects, NativeArray<EntityRemapUtility.EntityRemapInfo> entityRemapInfos)
Parameters
SerializeWorld(EntityManager, BinaryWriter, NativeArray<EntityRemapUtility.EntityRemapInfo>)
Declaration
public static void SerializeWorld(EntityManager entityManager, BinaryWriter writer, NativeArray<EntityRemapUtility.EntityRemapInfo> entityRemapInfos)
Parameters
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.