Keyframe to a discrete integer value.
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.