docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CompositionLayersRuntimeSettings

    Project-wide Composition Layers settings, edited in Project Settings > XR Plug-in Management > Composition Layers.

    Inheritance
    object
    Object
    ScriptableObject
    CompositionLayersRuntimeSettings
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetEntityId()
    Object.MemberwiseClone()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectsByType(Type)
    Object.FindObjectsByType(Type, FindObjectsInactive)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsByType<T>()
    Object.FindObjectsByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.XR.CompositionLayers
    Assembly: Unity.XR.CompositionLayers.dll
    Syntax
    public class CompositionLayersRuntimeSettings : ScriptableObject

    Properties

    BackgroundColor

    Gets the background color of the splash screen.

    Declaration
    public Color BackgroundColor { get; }
    Property Value
    Type Description
    Color

    BackgroundType

    Gets the background type of the splash screen. Solid color will use the background color, passthrough will show the passthrough layer.

    Declaration
    public CompositionLayersRuntimeSettings.SplashBackgroundType BackgroundType { get; }
    Property Value
    Type Description
    CompositionLayersRuntimeSettings.SplashBackgroundType

    CylinderLayerData

    Gets the data for the cylinder layer.

    Declaration
    public CylinderLayerData CylinderLayerData { get; }
    Property Value
    Type Description
    CylinderLayerData

    EmulationInStandalone

    Deprecated in XR Composition Layers 7.0.0-pre.1. Whether standalone players without an XR display draw composition layers through emulation. Has no effect when an XR display is running. For more information, refer to Upgrade to Composition Layers 7.0.

    Declaration
    [Obsolete("EmulationInStandalone is deprecated in XR Composition Layers 7.0.0-pre.1 and will be removed in a future release. It only applies to standalone players without an XR display. To hide layers in those builds, disable them instead.")]
    public bool EmulationInStandalone { get; }
    Property Value
    Type Description
    bool

    EnableSplashScreen

    Gets a value indicating whether the splash screen is enabled.

    Declaration
    public bool EnableSplashScreen { get; }
    Property Value
    Type Description
    bool

    FadeInDuration

    Gets the duration of the fade-in effect.

    Declaration
    public float FadeInDuration { get; }
    Property Value
    Type Description
    float

    FadeOutDuration

    Gets the duration of the fade-out effect.

    Declaration
    public float FadeOutDuration { get; }
    Property Value
    Type Description
    float

    FollowDistance

    Gets the distance from the camera to the splash screen.

    Declaration
    public float FollowDistance { get; }
    Property Value
    Type Description
    float

    FollowSpeed

    Gets the speed at which the layer moves towards the follow position.

    Declaration
    public float FollowSpeed { get; }
    Property Value
    Type Description
    float

    Instance

    The project's settings, or the defaults when the project has no settings asset. Never creates an asset.

    Declaration
    [Obsolete("Instance is obsolete as of Composition Layers 7.0.0-pre.1 and will be removed in a future release. Reference the settings asset from a serialized field instead.")]
    public static CompositionLayersRuntimeSettings Instance { get; }
    Property Value
    Type Description
    CompositionLayersRuntimeSettings

    LayerType

    Gets the type of layer used for the splash screen.

    Declaration
    public CompositionLayersRuntimeSettings.Layer LayerType { get; }
    Property Value
    Type Description
    CompositionLayersRuntimeSettings.Layer

    LockToHorizon

    Gets a value indicating whether the splash screen is locked to the horizon.

    Declaration
    public bool LockToHorizon { get; }
    Property Value
    Type Description
    bool

    PassthroughSplashScreenEnabled

    Returns true if the Splash Screen is enabled and the Background Type is set to Passthrough.

    Declaration
    public static bool PassthroughSplashScreenEnabled { get; }
    Property Value
    Type Description
    bool

    QuadLayerData

    Gets the data for the quad layer.

    Declaration
    public QuadLayerData QuadLayerData { get; }
    Property Value
    Type Description
    QuadLayerData

    SplashDuration

    Gets the duration of the splash screen.

    Declaration
    public float SplashDuration { get; }
    Property Value
    Type Description
    float

    SplashImage

    Gets the image to display on the splash screen.

    Declaration
    public Texture SplashImage { get; }
    Property Value
    Type Description
    Texture
    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)