기술 자료

Unity Engine

Unity Engine

Rotate

Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle.
읽는 시간 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.