Documentation

Unity Engine

Unity Engine

GetLocalPositionAndRotation(out float3, out quaternion)

Gets the local (parent-relative) position and rotation.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

GetLocalPositionAndRotation(float3, quaternion)

public void GetLocalPositionAndRotation(out float3 position, out quaternion rotation)

Parameters

position

The parent-relative position will be stored here

rotation

The parent-relative rotation will be stored here

Remarks

This function gives identical results to the following operations, but is more efficient:
position = transformRef.LocalPosition; rotation = transformRef.LocalRotation;