dc_dc_dx

我想知道导出的json/binary 文件中
这些数据是如何来的,或者说是受什么的影响的
因为现在在ue4中使用导出的spinewidget位置无法固定 切换不同的spine动画都要调整位置


I want to know in the exported json/binary file
How did this data come from, or what was affected by it
Because the position of the exported spinewidget in ue4 cannot be fixed, the position must be adjusted to switch between different spine animations.
您没有权限查看这个主题的附件。
dc_dc_dx
  • 帖子: 5

Mario

您在JSON文件中看到的数据在运行时不会使用。 相反,SpineWidget使用由骨架及其附件计算出的任何顶点位置:

https://github.com/EsotericSoftware/spine-runtimes/blob/3.8/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp#L241

我不太确定我了解这个问题,您能用图片说明一下吗?

The data you see in the JSON file is not used at runtime. Instead, the SpineWidget uses whatever vertex positions are calculated by the skeleton and its attachment:

https://github.com/EsotericSoftware/spine-runtimes/blob/3.8/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp#L241

I'm not quite sure I understand the question, could you illustrate it with images?
头像
Mario

Mario
  • 帖子: 2504

dc_dc_dx

Mario 写道:您在JSON文件中看到的数据在运行时不会使用。 相反,SpineWidget使用由骨架及其附件计算出的任何顶点位置:

https://github.com/EsotericSoftware/spine-runtimes/blob/3.8/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp#L241

我不太确定我了解这个问题,您能用图片说明一下吗?

The data you see in the JSON file is not used at runtime. Instead, the SpineWidget uses whatever vertex positions are calculated by the skeleton and its attachment:

https://github.com/EsotericSoftware/spine-runtimes/blob/3.8/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp#L241

I'm not quite sure I understand the question, could you illustrate it with images?
就像图片中的B一样 实际显示图像处于包围盒的左中部
现在我想保证B的Widget大小位置不变
切换成A显示的spine
如何保证A也能像B一样 处于包围盒的左中呢

Just like B in the picture, the actual display image is in the middle left of the bounding box
Now I want to ensure that the size and position of B's Widget remain unchanged
Switch to the spine displayed by A
How to ensure that A can also be in the left center of the bounding box like B

论坛回复的图片附件一定要png太烦了 :|
It’s too annoying that the image attachment of the forum reply must be png :|
您没有权限查看这个主题的附件。
dc_dc_dx
  • 帖子: 5


回到 中国Spine用户