SetEditorCurve() public static method

Adds, modifies or removes an editor float curve in a given clip.

public static SetEditorCurve ( AnimationClip clip, EditorCurveBinding binding, AnimationCurve curve ) : void
clip AnimationClip The animation clip to which the curve will be added.
binding EditorCurveBinding The bindings which defines the path and the property of the curve.
curve AnimationCurve The curve to add. Setting this to null will remove the curve.
return void
Ejemplo n.º 1
0
 public static void SetEditorCurve(AnimationClip clip, string relativePath, Type type, string propertyName, AnimationCurve curve)
 {
     AnimationUtility.SetEditorCurve(clip, EditorCurveBinding.FloatCurve(relativePath, type, propertyName), curve);
 }