zzzlll

我们的美术同学做了一个全屏的spine动画,在导入unity后,只能用原尺寸来播放,如果切换分辨率动画的位置和尺寸就会跟屏幕尺寸对不上,请问有什么方法可以实现自适应分辨率
zzzlll
  • 帖子: 1

Harald

我假设您的意思是在更改父RectTransform大小时要自动缩放SkeletonGraphic骨架。

我们在这里有一张关于此功能的问题单:
https://github.com/EsotericSoftware/spine-runtimes/issues/1640
虽然运行时尚未正式支持它,但论坛上的用户 ggzerosum 好心地分享了一个组件:
http://esotericsoftware.com/forum/Script-Make-SkeletonGraphic-respecting-RectTranform-13911 写道:感谢ggzerosum,现在论坛/github上共享了一个组件:
[Script] Make SkeletonGraphic respecting RectTranform
https://github.com/ggzerosum/SpineUtility/tree/master/RespectRectTransform

虽然我们仍然计划在 SkeletonGraphic 中原生支持它,但我相信这将在此期间帮助很多用户。
-----
I assume that you mean that you want to automatically scale the SkeletonGraphic skeleton when changing the parent RectTransform size.

We have an issue ticket here regarding this feature:
https://github.com/EsotericSoftware/spine-runtimes/issues/1640
While it's not officially supported in the runtime yet, user ggzerosum on the forum kindly shared a component:
http://esotericsoftware.com/forum/Script-Make-SkeletonGraphic-respecting-RectTranform-13911 写道:Thanks to ggzerosum, there is now a component shared on the forum/github:
[Script] Make SkeletonGraphic respecting RectTranform
https://github.com/ggzerosum/SpineUtility/tree/master/RespectRectTransform

While we are still planning to support it natively in SkeletonGraphic, I'm sure this will help a lot of users in the meantime.
头像
Harald

Harri
  • 帖子: 3589


回到 中国Spine用户