谢谢你寄来的复制包。
Thanks for sending the reproduction package.
由于你没有设置任何皮肤(Initial Skin Name
留在default
),你需要在sg.Initial Initialize(true);
之后调用sg.Skeleton.SetSlotsToSetupPose();
。
Since you are not setting any skin (Initial Skin Name
is left at default
), you need to call sg.Skeleton.SetSlotsToSetupPose();
after sg.Initialize(true);
.
sg = obj.GetComponent<SkeletonGraphic>();
sg.Initialize(true);
sg.Skeleton.SetSlotsToSetupPose();
sg.AnimationState.SetAnimation(0, "anim2", true);