• Editor
  • Attachments importing incorrectly (linked meshes)

Hello,

I am trying to use linked meshes across several skins so, if I ever change a mesh on one skin, all the skins get updated I'm running into an issue. Here's what I'm doing -

On one skin, I created a Linked Mesh and placed it under my new skin under the same skin placeholder. I then drag and drop the new skin's appropriate image into the newly created skin placeholder to update the image. When I do this, something strange happens and the new skin's image is much smaller than the original meshes' image.

I tried using the 'reset' feature which brings to back to the original image's size but rotates the image. So I rotate the image back to where I want it and, when I flip back to the original skin, the original image is too large now. This creates a circular problem where neither skin ever has the correct size or rotation. Any advice on how to fix this? Thanks!

Related Discussions
...

Hey wagabag,
Probably the easiest way to change mesh in a linked mesh is to edit its path, rather than drag and drop a new image on it.

Here's a video on how to change image path across different skins all in one go:

This is also specified in the user guide about Linked Meshes Meshes - Spine User Guide: Linked meshes

To use a different image for the linked mesh, simply rename it or set a Path, as normal.

Hope it helps (:

Drag and drop of an image on top of the linked mesh attachment under a skin placeholder should be equivalent to renaming the attachment so it finds the new image. Be careful to drop on the attachment and not on skin placeholder, else it will create a new region attachment and delete the old attachment under the placeholder. Try with renaming as Erika suggested to see if you get different results.

Could it be that your new image is not the same size as the source mesh image?

Hmm I tried following y'alls steps and watching the video but I still seem to be running into the issue. For example, I am trying to create two skins - one I have set up the way I want it ("reference skin"), the other is new (i.e. "new skin"). All of both skins' assets are identical in size. Here are the steps I'm following -

  1. I duplicate the "reference skin."
  2. In the "reference skin," I create a linked mesh for my arms and legs.
  3. In the "new skin," I replace the mesh with the new skin's correct image. However, a problem occurs and the new skin's image does not fit the mesh even though I'm sure the reference and new skins' images are the same size. I've tried both dragging and dropping onto the newly created linked mesh and the "find and replace" feature demonstrated in the video. Am I missing something??

Attached some images hoping it helps explain the situation. Thanks!

5 天 后

If you're ok with sending the project to contact@esotericsoftware.com Pointing out the two problematic images I can look deeper in the project.
As an extreme move you can take the original mesh image, duplicate it and paint over it.


The two images had two different sizes, Linked meshes only work well with same size.