• 中文
  • 能否在Unity中显示每个动画的数据量

我使用 Unity2019 LTS 和 Spine 4.0.61.

在 Unity 中,选中 Spine 文件的 SkeletonDataAsset,可以查看每个动画的名字和持续时间,能否也显示一下动画的数据量。
如图所示:

有没有获取动画数据量大小的接口。

Related Discussions
...

不幸的是,这样的尺寸度量视图在脊柱统一中不可用。 我们建议改为在 Spine Editor 中检查动画指标,您可以在其中查看有关每个动画的更多详细信息:
Unfortunately such a size metric view is not available in spine-unity. We would suggest to inspect the animation metrics in the Spine Editor instead, where you can view more details about each animation:

如果您真的想在 Unity 中执行此操作,您可以访问
SkeletonData.Animations,并为每个Animation 迭代Animation.Timelines并查询Timeline.Frames.length 大致相当于时间线的大小。


If you really want to do this in Unity, you could access
SkeletonData.Animations, and for each Animation iterate over Animation.Timelines and query Timeline.Frames.length which is roughly equivalent to the size of a timeline.