Translate
Represents a translation of the object. Percentage values in X and Y are relative to the width and height of the visual element where the style value is applied.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<Translate>
public struct Translate : IEquatable<Translate>
Constructors
Constructor | Description |
|---|---|
| Translate(UnityEngine.UIElements.Length,UnityEngine.UIElements.Length) | Create a Translate data with two Lengths for the x and y axis. |
Static Methods
Method | Description |
|---|---|
| None | Returns the value of a Translate object with no translation applied. |