docs.unity.cn
    Show / Hide Table of Contents

    Method SerializeWorldIntoYAML

    SerializeWorldIntoYAML(EntityManager, StreamWriter, Boolean)

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

    Declaration
    public static void SerializeWorldIntoYAML(EntityManager entityManager, StreamWriter writer, bool dumpChunkRawData)
    Parameters
    Type Name Description
    EntityManager entityManager

    Entity Manager of the World to serialize

    StreamWriter writer

    The stream we will write the data to

    Boolean dumpChunkRawData

    If true the binary data of each chunk section (header, component data of each entity) will be saved. This will increase the volume of data being written drastically, but you will be able to diff at the binary level

    Remarks

    Analysing a serialized sub-scene for instance is not easy because the data is raw binary. It is even harder if we want to compare two distinct serialization of the same sub-scene. This method will allow us to save the data of a given World in YAML. Note that so far the data being saved is not totally complete, it will improve over time.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023