SerializeUtility
Utility class to serialize and deserialize World objects.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Class
- Namespace: Unity.Entities.Serialization
- Assembly: UnityEngine.EntitiesModule
public static class SerializeUtility
Static Fields
Value | Description |
|---|---|
| CurrentFileFormatVersion | The version of the serialization file format. |
Static Methods
Method | Description |
|---|---|
| DeserializeWorld | Deserializes a World object. |
| GetSceneSectionEntity | 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. |
| SerializeWorld | Uses a BinaryWriter to serialize a World. |