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.
Additional Resources: AnimationClip AnimationUtility.SetDiscreteCurve AnimationUtility.SetDiscreteCurves.