About Unity Runtime Scene Serialization | Unity Runtime Scene Serialization | 0.1.4-preview
docs.unity3d.com

    About Unity Runtime Scene Serialization

    Use Runtime Scene Serialization to save and load scenes in Unity Player builds.

    To test this functionality in the Editor, try opening a scene and going to File > Save JSON Scene.... Make a new scene, then Choose File > Open JSON Scene... choose the scene you just saved, and you should see the same objects as if you had opened the Unity scene.

    To use this in your project, simply call SerializationUtils.SerializeScene on the curently loaded scene you would like to serialize, and call SerializationUtils.DeserializeScene to parse a JSON scene and create the objects within.

    Installation

    To install this package, follow the instructions in the Package Manager documentation.

    Requirements

    This version of Runtime Scene Serialization is compatible with the following versions of the Unity Editor:

    • 2019.3 and later (recommended)

    Known limitations

    Runtime Scene Serialization version 0.1.0-preview includes the following known limitations:

    • Some properties like lightmap settings on renderers are not accessible from C# and cannot be serialized with this package
    • There may be some interference with DOTS serialization because of the types of property bags generated by this package
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023