Animation.AddClipfunction AddClip (clip : AnimationClip, newName : String) : voidDescriptionAdds a clip to the animation with name newName.
JavaScript
var walkClip : AnimationClip; using UnityEngine; import UnityEngine function AddClip (clip : AnimationClip, newName : String, firstFrame : int, lastFrame : int, addLoopFrame : boolean = false) : voidDescriptionAdds clip to the only play between firstFrame and lastFrame. The new clip will also be added to the animation with name newName. addLoopFrame: Should an extra frame be inserted at the end that matches the first frame? Turn this on if you are making a looping animation. If a clip with that name already exists it will be replaced with the new clip.
JavaScript
// Split the default clip into a shoot, walk and idle animation using UnityEngine; import UnityEngine |
