GetLocalPositionAndRotation(out float3, out quaternion)
Gets the local (parent-relative) position and rotation.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetLocalPositionAndRotation(float3, quaternion)
public void GetLocalPositionAndRotation(out float3 position, out quaternion rotation)
Parameters
The parent-relative position will be stored here
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;