Scale
Represents the scale applied as element transformations. The center point that doesn't move when the scaling is applied is the TransformOrigin.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<Scale>
public struct Scale : IEquatable<Scale>
Constructors
Constructor | Description |
|---|---|
| Scale(UnityEngine.Vector2) | Creates a new Scale from a Vector2. |
| Scale(UnityEngine.Vector3) | Creates a new Scale from a Vector3. |
Static Methods
Method | Description |
|---|---|
| None | Returns a value of Scale without any scaling applied. |