Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EaseInOut(float, float, float, float)

Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static AnimationCurve EaseInOut(float timeStart, float valueStart, float timeEnd, float valueEnd)

Parameters

timeStart

The start time for the ease curve.

valueStart

The start value for the ease curve.

timeEnd

The end time for the ease curve.

valueEnd

The end value for the ease curve.

Returns

Type

Description

AnimationCurveThe ease-in and out curve generated from the specified values.