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.
Inherited Members
Namespace: Unity.XR.CompositionLayers.Layers
Assembly: solution.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
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. |