ドキュメント

Unity Engine

Unity Engine

Rotate

Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

Rotate(Angle, Vector3)

Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle.
public Rotate(Angle angle, Vector3 axis)

Parameters

angle


Remarks

3D rotations are only expected to work on world space panels and will cause masking issues on overlay panels.

Rotate(Angle)

Create a Rotate struct that correspond to a rotation around the z axis by the provided Angle.
public Rotate(Angle angle)

Parameters

angle

Rotate(Quaternion)

Create a Rotate struct that corresponds to a rotation specified by the provided Quaternion.
public Rotate(Quaternion quaternion)

Parameters

quaternion

Remarks

3D rotations are only expected to work on world space panels and will cause masking issues on overlay panels.