About Animation.AddClip() issue

Dear Experts:

I have encountered a problem when I called Animation.AddClip() method,it really did nothing,Here is my code:

And when the code Anim.clip=clips; executed,the default animation added to the Animation Component,but Anim.AddClip(clips,“s”); really doesn’t work,please reference the attached picture,anyone who can help is much appreciated.

var Anim:Animation;
//var obj:GameObject = Selection.activeGameObject;
var obj:GameObject = prefeb;
obj.AddComponent(“Animation”);
Anim=obj.GetComponent(“Animation”);

var clips:AnimationClip = Resources.LoadAssetAtPath(“Assets/Boar/Animation/Boar@Boar@Dead.fbx”, AnimationClip) as AnimationClip;

//var c:AnimationClip;
Anim.clip=clips;
Anim.AddClip(clips,“s”);

Did you ever figure this out? I have the same issue.