docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class QuadLayerData

    Subclass of LayerData that defines a simple quad layer in a scene. A quad layer is simply a rectangular area of the display that will be rendered with some texture by the current ILayerProvider. The quad should be rendered at the transform location.

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

    Properties

    ApplyTransformScale

    Whether or not to apply the transform scale properties to the layer. When true, the scale of the transform will be applied to the width and height respectively.

    Declaration
    public bool ApplyTransformScale { get; set; }
    Property Value
    Type Description
    bool

    Size

    Return the size of quad layer - width and height.

    Declaration
    public Vector2 Size { get; set; }
    Property Value
    Type Description
    Vector2

    Methods

    CopyFrom(LayerData)

    Used to copy values from another layer data instance

    Declaration
    public override void CopyFrom(LayerData layerData)
    Parameters
    Type Name Description
    LayerData layerData

    Layer data to copy from

    Overrides
    LayerData.CopyFrom(LayerData)

    GetScaledSize(Vector3)

    Return re-calculated parameters based on whether or not apply the transform scale properties.

    Declaration
    public Vector2 GetScaledSize(Vector3 scale)
    Parameters
    Type Name Description
    Vector3 scale

    transform scale

    Returns
    Type Description
    Vector2

    Return re-calculated quad params.

    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)