Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit af96075

Browse files
authored
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.
1 parent 5cd5ba7 commit af96075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Runtime/Utils/Spline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class Spline
2828

2929
// Instead of trying to be smart and blend two curves by generating a new one, we'll simply
3030
// store the curve data in a float array and blend these instead.
31-
internal float[] cachedData;
31+
public float[] cachedData;
3232

3333
public Spline(AnimationCurve curve, float zeroValue, bool loop, Vector2 bounds)
3434
{

0 commit comments

Comments
 (0)