ドキュメント

Unity Engine

Unity Engine

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

NoneReturns the value of a Translate object with no translation applied.

Operators

Operator

Description

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