lqtdvhtw123
就是说,动画是正常播放的,为什么对象的组件信息显示的并没有改变?
答案就像Harald回答的那样。这些检查器属性只显示开始的动画名称,而不是当前的。
顺便说一下,我发现我错过了你的第二个问题。
顺便告诉我一下,还有就是,我应该如何在代码中Reload,谢谢
你可以使用SkeletonGraphic Initialize()
方法。下面是一个设置和重新加载一个新的SkeletonDataAsset的示例代码:
skeletonGraphic.skeletonDataAsset = newSkeletonDataAsset;
skeletonGraphic.Initialize(true);
如果我误解了你的问题,我希望你能更清楚地说明你想做什么。
就是说,动画是正常播放的,为什么对象的组件信息显示的并没有改变?
The answer is just as Harald replied. These Inspector properties only show the starting animation name, not the current one.
By the way, I realized I missed that you have a second question:
顺便告诉我一下,还有就是,我应该如何在代码中Reload,谢谢
You can use SkeletonGraphic Initialize()
method. The following is an example code for setting up and reloading a new SkeletonDataAsset:
skeletonGraphic.skeletonDataAsset = newSkeletonDataAsset;
skeletonGraphic.Initialize(true);
If I have misunderstood your questions, I would appreciate more clarification as to what you are trying to do.