BuildTarget.VisionOS does not exist in Unity 2022.3.0 - 2022.3.17 or 2023.1.x, so UNITY_2022_3_OR_NEWER causes CS0117 compile errors on those versions. Tighten the guard to UNITY_2023_2_OR_NEWER, where the enum is guaranteed to exist.