Thanks. I understand what is happening now.
谢谢,我明白了。我现在明白是怎么回事了。
The attachments that appear small are region attachments. It is not possible to set the width and height of a region attachment in the Spine editor. It always uses the width and height of the image file. To change the size of a region attachment, you would use scale X and scale Y.
那些看起来很小的附件是区域附件。在Spine编辑器中不可能设置区域附件的宽度和高度,它总是使用图像文件的宽度和高度。它总是使用图像文件的宽度和高度。要改变一个区域附件的大小,你可以使用缩放X和缩放Y。
There is a width and height in the JSON data for region attachments. That tells the Spine Runtimes the image size as it was in the Spine editor. If you use different sized images at runtime, they will still appear the size they were in the Spine editor. This allows you to use more detailed images at runtime without affecting the size of the skeleton.
区域附件的JSON数据中有一个宽度和高度。这告诉Spine Runtimes图像的大小,因为它是在Spine编辑器中。如果你在运行时使用不同大小的图像,它们仍然会以Spine编辑器中的大小出现。这允许你在运行时使用更多细节的图像,而不影响骨架的大小。
When you import the JSON data, the width and height for region attachments is only used to keep the size of the region attachments until an image file is found. That is because the width and height is always the actual size of the image used in the Spine editor, not a size that should be used for the size of the region attachment.
当您导入JSON数据时,区域附件的宽度和高度仅用于保持区域附件的大小,直到找到图像文件。这是因为宽度和高度始终是Spine编辑器中使用的图像的实际尺寸,而不是应该用于区域附件的尺寸。
I notice all your meshes are 5x larger than the region attachment image files. Why is that? It would be much better to create your skeleton so the size of both the mesh attachments and region attachments match the size of the image files. To do that, when you import data, set the scale to 0.2 (1/5th). This will reduce the size of your bones, meshes, etc to 20%. Now when you specify the images folder, the size of region attachment image files matches the rest of the skeleton.
我注意到你所有的网格都比区域附件的图像文件大5倍。为什么会这样?最好是创建骨架,使网格附件和区域附件的大小与图像文件的大小相匹配。要做到这一点,当你导入数据时,将比例尺设置为0.2(1/5)。这将使你的骨骼、网格等的大小缩小到20%。现在当你指定图像文件夹时,区域附件图像文件的大小与骨架的其他部分相匹配。
Another way to fix it is to set the scale on all your region attachments by 5. Or yet another way would be to convert all the region attachments to meshes before you set the images folder. However, region attachments are a little more efficient at runtime than using a mesh.
另一种解决方法是将所有区域附件的比例设置为5,或者另一种方法是在设置图像文件夹之前将所有区域附件转换为meshes。然而,区域附件在运行时比使用网格更有效一些。