/// <summary> /// Gets the position, rotation and scale of the transform relative to the parent. /// </summary> /// <param name="stream">The AnimationStream that holds the animated values.</param> /// <param name="position">The position of the transform relative to the parent.</param> /// <param name="rotation">The rotation of the transform relative to the parent.</param> /// <param name="scale">The scale of the transform relative to the parent.</param> public void GetLocalTRS(AnimationStream stream, out Vector3 position, out Quaternion rotation, out Vector3 scale) { if (m_InStream == 1) { m_StreamHandle.GetLocalTRS(stream, out position, out rotation, out scale); } else { m_SceneHandle.GetLocalTRS(stream, out position, out rotation, out scale); } }
/// <summary> /// Gets the position, rotation and scale of the transform relative to the parent. /// </summary> /// <param name="stream">The AnimationStream that holds the animated values.</param> /// <param name="position">The position of the transform relative to the parent.</param> /// <param name="rotation">The rotation of the transform relative to the parent.</param> /// <param name="scale">The scale of the transform relative to the parent.</param> public void GetLocalTRS(AnimationStream stream, out Vector3 position, out Quaternion rotation, out Vector3 scale) => m_Handle.GetLocalTRS(stream, out position, out rotation, out scale);