ドキュメント

Unity Engine

Download Unity

Unity Engine

DiscreteKeyframe

Keyframe to a discrete integer value.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.