Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Keyframe

struct in UnityEngine

Description

A single keyframe that can be injected into an animation curve.

Variables

inTangentDescribes the tangent when approaching this point from the previous point in the curve.
outTangentDescribes the tangent when leaving this point towards the next point in the curve.
tangentModeTangentMode is deprecated. Use AnimationUtility.SetKeyLeftTangentMode or AnimationUtility.SetKeyRightTangentMode instead.
timeThe time of the keyframe.
valueThe value of the curve at keyframe.

Constructors

KeyframeCreate a keyframe.

Did you find this page useful? Please give it a rating: