Class CompositionLayersRuntimeSettings
Project-wide Composition Layers settings, edited in Project Settings > XR Plug-in Management > Composition Layers.
Inherited Members
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 |