diff --git a/Assets/Mirror/Core/Tools/Extensions.cs b/Assets/Mirror/Core/Tools/Extensions.cs index 522806a35..cd29a2a6e 100644 --- a/Assets/Mirror/Core/Tools/Extensions.cs +++ b/Assets/Mirror/Core/Tools/Extensions.cs @@ -101,8 +101,8 @@ public static void Clear(this ConcurrentQueue source) } #endif -#if !UNITY_2021_3_OR_NEWER - // Unity 2021.2 and earlier don't have transform.GetPositionAndRotation which we use for performance in some places +#if !UNITY_2022_0_OR_NEWER + // Some patch versions of Unity 2021.3 and earlier don't have transform.GetPositionAndRotation which we use for performance in some places public static void GetPositionAndRotation(this Transform transform, out Vector3 position, out Quaternion rotation) { position = transform.position;