기술 자료

Unity Engine

Unity Engine

GetPositionAndRotation(out Vector3, out Quaternion)

Gets the position and rotation of the transform in world space.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

GetPositionAndRotation(Vector3, Quaternion)

public void GetPositionAndRotation(out Vector3 position, out Quaternion rotation)

Parameters

position


rotation

Remarks

When getting both the position and rotation of a transform, calling this method is more efficient than querying to TransformAccess.position and TransformAccess.rotation individually.