docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Enum DataStorageMethod

    How the host migration data is serialized for sending to the service.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public enum DataStorageMethod : byte

    Fields

    Name Description
    Binary

    Use the BinarySerialization class from the com.unity.serialization package for storing host migration data.

    Json

    Use the JsonSerialization class from the com.unity.serialization package for storing host migration data.

    JsonMinified

    Use the JsonSerialization class from the com.unity.serialization package but use the minified option to make the text more compact.

    StreamCompressed

    Serialize data with DataStreamWriter and compress into byte array.

    In This Article
    Back to top
    Copyright © 2025 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)