From af96075a245b0e8d2557846592b010a978426643 Mon Sep 17 00:00:00 2001 From: DawidMoza Date: Sat, 5 May 2018 18:30:14 +0200 Subject: [PATCH] cachedData changed from internal to public Custom Effects that aren't inside Runtime directory aren't allowed to use cachedData under Unity 2017.3.0f3. Everything works fine under 2017.1, but not in that case. And actually cachedData is the only way to use Spline since even buit-in ColorGrading.cs does it. --- PostProcessing/Runtime/Utils/Spline.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostProcessing/Runtime/Utils/Spline.cs b/PostProcessing/Runtime/Utils/Spline.cs index 023c0142..04301422 100644 --- a/PostProcessing/Runtime/Utils/Spline.cs +++ b/PostProcessing/Runtime/Utils/Spline.cs @@ -28,7 +28,7 @@ public sealed class Spline // Instead of trying to be smart and blend two curves by generating a new one, we'll simply // store the curve data in a float array and blend these instead. - internal float[] cachedData; + public float[] cachedData; public Spline(AnimationCurve curve, float zeroValue, bool loop, Vector2 bounds) {