Skip to content

Instantly share code, notes, and snippets.

@Sztorm
Sztorm / AnimationCurveUtils.cs
Last active August 6, 2021 00:11
AnimationCurveUtils containing EaseIn and EaseOut functions. Public domain.
using UnityEngine;
public static class AnimationCurveUtils
{
/// <summary>
/// Creates an ease-in curve starting at timeStart, valueStart and ending at timeEnd,
/// valueEnd.
/// </summary>
/// <param name="timeStart">The start time for the ease-in curve.</param>
/// <param name="valueStart">The start value for the ease-in curve.</param>