chen3701

1626331725(1).png
请问这2个属性是根据什么得来的?如何能调整这2个属性?
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
chen3701
  • Postovi: 1

Nate

Very sorry your message did not get a response sooner!
非常抱歉,你的留言没有得到更早的回复!

The x, y, width, and height are the position and size of the skeleton in the setup pose. To change them you would need to change the setup pose in Spine, before you export the JSON data.
x, y, width, and height 是骨架在设置姿势中的位置和尺寸。要改变它们,你需要在导出JSON数据之前改变Spine中的设置姿势。

You don't have to use those values, they are provided only for convenience, so you don't have to calculate the values for the setup pose. You could also pose your skeleton (using the setup pose, an animation, or by manually adjusting the bones) and then call Skeleton getBounds.
你不必使用这些值,它们只是为了方便而提供的,所以你不必为设置姿势计算这些值。你也可以给你的骨架摆个姿势(使用设置姿势、动画或手动调整骨骼),然后调用 Skeleton getBounds
Avatar
Nate

Nate
  • Postovi: 11791


Natrag na 中国Spine用户