docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EquirectMeshLayerData

    Subclass of LayerData that defines a equirect layer in a scene. A equirect sphere is centered at the transform location with only its inside faces visible.

    Inheritance
    object
    LayerData
    EquirectMeshLayerData
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    LayerData.BlendTypeDirectly
    LayerData.BlendType
    LayerData.ReportStateChange
    LayerData.UpdateValue<T>(T, T)
    LayerData.Validate(CompositionLayer)
    LayerData.CopyFrom(LayerData)
    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 EquirectMeshLayerData : LayerData, ISerializationCallbackReceiver

    Properties

    CentralHorizontalAngle

    Defines the visible horizontal angle of the sphere, based at 0 radians, in the range of [0, 2π]. It grows symmetrically around the 0 radian angle.

    Declaration
    public float CentralHorizontalAngle { get; set; }
    Property Value
    Type Description
    float

    CentralHorizontalAngleInDegrees

    Defines the visible horizontal angle of the sphere, based at 0 radians, in the range of [0, 360]. It grows symmetrically around the 0 radian angle.

    Declaration
    public float CentralHorizontalAngleInDegrees { get; set; }
    Property Value
    Type Description
    float

    LowerVerticalAngle

    Defines the lower vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2].

    Declaration
    public float LowerVerticalAngle { get; set; }
    Property Value
    Type Description
    float

    LowerVerticalAngleInDegrees

    Defines the lower vertical angle of the visible portion of the sphere, in the range of [-90, 90].

    Declaration
    public float LowerVerticalAngleInDegrees { get; set; }
    Property Value
    Type Description
    float

    Radius

    Defines radius of the sphere onto which the equirect image data is mapped.

    Declaration
    public float Radius { get; set; }
    Property Value
    Type Description
    float

    UpperVerticalAngle

    Defines the upper vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2].

    Declaration
    public float UpperVerticalAngle { get; set; }
    Property Value
    Type Description
    float

    UpperVerticalAngleInDegrees

    Defines the upper vertical angle of the visible portion of the sphere, in the range of [-90, 90].

    Declaration
    public float UpperVerticalAngleInDegrees { get; set; }
    Property Value
    Type Description
    float

    Methods

    OnAfterDeserialize()

    Converts legacy equirect layer data to the current format.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Sets the serialized version to the current version before serialization.

    Declaration
    public void OnBeforeSerialize()

    Implements

    ISerializationCallbackReceiver
    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)