Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DiscreteKeyframe

Keyframe to a discrete integer value.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Struct
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public struct DiscreteKeyframe

Remarks

Use a discrete keyframe to create an array of integer values. An AnimationClip uses an array of integer values to animate discrete integer property values.
Use the AnimationUtility.SetDiscreteCurve and AnimationUtility.SetDiscreteCurves methods to assign DiscreteKeyframe arrays of integer property values to an AnimationClip. Use the AnimationUtility.GetDiscreteCurve method to retrieve a DiscreteKeyframe array for a discrete property.

Fields

Value

Description

timeThe time of the keyframe.
valueThe integer value of the keyframe.