Translate

struct in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

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.

Constructors

Translate

Static Methods

None Returns the value of a Translate object with no translation applied.

Operators

Translate Implicitly converts a Vector3 to a Translate, with the resulting value specified in pixels.
Translate Implicitly converts a Vector2 to a Translate, with the resulting value specified in pixels and the z value set to 0.

Did you find this page useful? Please give it a rating: