Class QuadUIScale
Handles quad collider generation and maintaining aspect ratio with Canvas changes
Inherited Members
Namespace: Unity.XR.CompositionLayers .UIInteraction
Assembly: Unity.XR.CompositionLayers.UIInteraction.dll
Syntax
[ExecuteInEditMode]
[RequireComponent(typeof(CompositionLayer), typeof(MeshCollider))]
public class QuadUIScale : LayerUIScale
Methods
GetUIScale()
Calculates a Vector3 scalar to help convert a point from world space to the local space Mainly used for resizing
Declaration
public override Vector3 GetUIScale()
Returns
Type | Description |
---|---|
Vector3 | Returns a Vector3 scalar to transform a point on a Canvas to a point on the Layer |