Skip to content

Commit 470a1e0

Browse files
committed
Changed AnimationCurve constructor to be compatible with Unity 2017.1
1 parent 396310d commit 470a1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI-Editor/MLAPIProfiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ GUIStyle wrapStyle
3131
int captureCount = 100;
3232
float showMax = 0;
3333
float showMin = 0;
34-
AnimationCurve curve = AnimationCurve.Constant(0, 1, 0);
34+
AnimationCurve curve = AnimationCurve.Linear(0, 0, 1, 0);
3535
readonly List<ProfilerTick> currentTicks = new List<ProfilerTick>();
3636
float lastDrawn = 0;
3737
class ProfilerContainer

0 commit comments

Comments
 (0)