Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Constant(float, float, float)

Creates a constant "curve" starting at timeStart, ending at timeEnd, and set to the value value.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static AnimationCurve Constant(float timeStart, float timeEnd, float value)

Parameters

timeStart

The start time for the constant curve.

timeEnd

The end time for the constant curve.

value

The value for the constant curve.

Returns

Type

Description

AnimationCurveThe constant curve created from the specified values.