docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SerializeWorldIntoYAML

    SerializeWorldIntoYAML(EntityManager, StreamWriter, bool)

    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

    bool 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.

    In This Article
    • SerializeWorldIntoYAML(EntityManager, StreamWriter, bool)
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)