文档

Unity Engine

Unity Engine

DiscreteKeyframe

Keyframe to a discrete integer value.
阅读时间1 分钟最后更新于 25 天前

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.