docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlatformLayerData

    This class is used to keep platform dependent properties. The specific platforms define additional attributes for this inherited class.

    Inheritance
    object
    PlatformLayerData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CompositionLayers.Layers
    Assembly: Unity.XR.CompositionLayers.dll
    Syntax
    [Serializable]
    public class PlatformLayerData

    Methods

    Deserialize(string)

    Deserialize all SerializeField from text.

    Declaration
    public virtual void Deserialize(string text)
    Parameters
    Type Name Description
    string text

    Serialized text.

    DeserializeBinary(int[])

    Deserialize all properties from binary.

    Declaration
    public virtual void DeserializeBinary(int[] binary)
    Parameters
    Type Name Description
    int[] binary

    Serialized binary.

    IsSupportedSerializeBinary()

    Check to support binary serialize/deserialize.

    Declaration
    public virtual bool IsSupportedSerializeBinary()
    Returns
    Type Description
    bool

    true if target platform supports binary serialize/deserialize.

    Serialize()

    Serialize all SerializeField to text.

    Declaration
    public virtual string Serialize()
    Returns
    Type Description
    string

    Serialized text.

    SerializeBinary()

    Serialize all properties to binary.

    Declaration
    public virtual int[] SerializeBinary()
    Returns
    Type Description
    int[]

    Serialized binary.

    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)