Internal_SetAnimationEvents() private method

private Internal_SetAnimationEvents ( AnimationClip clip, AnimationEvent events ) : void
clip AnimationClip
events AnimationEvent
return void
Esempio n. 1
0
 public static void SetAnimationEvents(AnimationClip clip, AnimationEvent[] events)
 {
     if (clip == null)
     {
         throw new ArgumentNullException("clip");
     }
     if (events == null)
     {
         throw new ArgumentNullException("events");
     }
     AnimationUtility.Internal_SetAnimationEvents(clip, events);
     if (AnimationUtility.onCurveWasModified != null)
     {
         AnimationUtility.onCurveWasModified(clip, default(EditorCurveBinding), AnimationUtility.CurveModifiedType.ClipModified);
     }
 }