diff --git a/com.unity.cinemachine/Runtime/Core/SplineSettings.cs b/com.unity.cinemachine/Runtime/Core/SplineSettings.cs index 45a141603..8db265540 100644 --- a/com.unity.cinemachine/Runtime/Core/SplineSettings.cs +++ b/com.unity.cinemachine/Runtime/Core/SplineSettings.cs @@ -187,7 +187,7 @@ public bool KnotsAreValid(Spline spline, Transform transform) public float GetCurveInterpolation(int curveIndex, float curveDistance) => m_NativeSpline.GetCurveInterpolation(curveIndex, curveDistance); /// public float GetCurveLength(int index) => m_NativeSpline.GetCurveLength(index); -#if !CINEMACHINE_GML_TESTING +#if CINEMACHINE_SPLINES_2_5 /// public float3 GetCurveUpVector(int index, float t) => m_NativeSpline.GetCurveUpVector(index, t); #endif diff --git a/com.unity.cinemachine/Runtime/Unity.Cinemachine.asmdef b/com.unity.cinemachine/Runtime/Unity.Cinemachine.asmdef index 70b7465bd..eb8efd981 100644 --- a/com.unity.cinemachine/Runtime/Unity.Cinemachine.asmdef +++ b/com.unity.cinemachine/Runtime/Unity.Cinemachine.asmdef @@ -76,6 +76,11 @@ "name": "com.unity.modules.uielements", "expression": "1.0.0", "define": "CINEMACHINE_UIELEMENTS" + }, + { + "name": "com.unity.splines", + "expression": "2.5.0", + "define": "CINEMACHINE_SPLINES_2_5" } ], "noEngineReferences": false