AddClip
Adds a clip to the animation with name newName.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
AddClip(AnimationClip, string)
Adds a to the animation with name .
clipnewNamepublic void AddClip(AnimationClip clip, string newName)
Parameters
AddClip(AnimationClip, string, int, int, bool)
Adds to the only play between and . The new clip will also be added to the animation with name .
clipfirstFramelastFramenewNamepublic void AddClip(AnimationClip clip, string newName, int firstFrame, int lastFrame, bool addLoopFrame)
Parameters
Should an extra frame be inserted at the end that matches the first frame? Turn this on if you are making a looping animation.
Remarks
If a clip with that name already exists it will be replaced with the new clip.