docs.unity.cn
    Show / Hide Table of Contents

    Class SerializeUtility

    Utility class to serialize and deserialize World objects.

    Inheritance
    Object
    SerializeUtility
    Namespace: Unity.Entities.Serialization
    Syntax
    public static class SerializeUtility

    Fields

    Name Description
    CurrentFileFormatVersion

    The version of the serialization file format.

    Methods

    Name Description
    DeserializeWorld(ExclusiveEntityTransaction, BinaryReader, Object[])

    Deserializes a World object.

    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.

    SerializeWorld(EntityManager, BinaryWriter)

    Uses a BinaryWriter to serialize a World.

    SerializeWorld(EntityManager, BinaryWriter, out Object[])

    Uses a BinaryWriter to serialize a World.

    SerializeWorld(EntityManager, BinaryWriter, out Object[], NativeArray<EntityRemapUtility.EntityRemapInfo>)

    Uses a BinaryWriter to serialize a World.

    SerializeWorld(EntityManager, BinaryWriter, NativeArray<EntityRemapUtility.EntityRemapInfo>)

    Uses a BinaryWriter to serialize a World.

    SerializeWorldIntoYAML(EntityManager, StreamWriter, Boolean)

    Serialize the given World to a YAML file, for logging and analysis purpose

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023