TransformAccess.GetPositionAndRotation

Declaration

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

Description

Gets the position and rotation of the transform in world space.

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


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