docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CompositionLayerManager.LayerInfo

    Information about composition layers registered with the manager.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.XR.CompositionLayers.Services
    Assembly: Unity.XR.CompositionLayers.dll
    Syntax
    public struct CompositionLayerManager.LayerInfo

    Fields

    Id

    Unique id assigned by the CompositionLayerManager for the registered layer.

    Declaration
    public int Id
    Field Value
    Type Description
    int
    Remarks

    Prior to the introduction of manager-generated identifiers, this value was sourced from UnityEngine.Object.GetInstanceID(). It is now an independent counter managed by CompositionLayerManager to remove the dependency on GetInstanceID(), which is scheduled for deprecation in a future version of Unity. The value remains an int and continues to be unique for the lifetime of a given manager session.

    Layer

    The actual layer instance.

    Declaration
    public CompositionLayer Layer
    Field Value
    Type Description
    CompositionLayer
    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)