不幸的是,这样的尺寸度量视图在脊柱统一中不可用。 我们建议改为在 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.