docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IPropertySerialization

    Supports binary serialization and deserialization of component properties.

    Namespace: Unity.SimulationPro.Foundation
    Assembly: Unity.SimulationPro.Foundation.dll
    Syntax
    public interface IPropertySerialization
    Remarks

    Implement this interface on components that need their configurable properties persisted or transferred in binary form, such as for distributed rendering snapshots.

    Methods

    DeserializeProperties(BinaryReader)

    Reads and restores the component's serializable properties from the specified reader.

    Declaration
    void DeserializeProperties(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader to read property data from.

    SerializeProperties(BinaryWriter)

    Writes the component's serializable properties to the specified writer.

    Declaration
    void SerializeProperties(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The binary writer to write property data to.

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