therussmorris

  • 29 sept. 2016
  • Inscrit 29 sept. 2016
  • Thanks Xelnath.

    Works perfectly. I'm sure I unchecked that to try it out, but I think that in the haze of looking at various settings and updates to graphics / version control, there was probably a point where the setting was overwritten by our animator.

    Thanks very much, really appreciate you taking the time to take a look and provide the solution!

  • Hello!

    So we're working with some rig customisation. Thanks to the great posts and updates from Pharan in other threads, we've got the system working pretty well with replacing slot attachments with Unity sprites at runtime.

    What we've recently found is that we've needed to make some adjustments to the original graphics to allow for greater customisation / fit better, mainly on the shoes.

    What we've done :

    extended the width of the canvas on the original foot graphic, made some placement adjustments so it appears in the correct position in the rig.

    original.

    updated

    So, with all that looking good in Spine, we drew our new assets.

    The issue seems to be that when we export from Spine in to Unity, the meshes that are created for the skinned mesh renderer end up being clipped to the edge of the images being used.

    Imported in to Unity.

    My next step was to set the attachment in Spine to be a mesh, which I figured would dictate how big to create the mesh in Unity.

    All that is looking good. The bounding box of the mesh is the same size as the canvas for the original graphic.

    Mesh setup in Spine

    The problem now is that when I export the rig and put it in Unity, the graphic used is stretched to the size of the mesh.

    Stretched graphic, but mesh is correct size.

    I'm using the Attachment Utilities that were in the thread related to attaching sprites and rotational issues that Pharan create to attach the sprite.

    Any hints and ideas on what this would be happening would be great!

    Thanks!

  • Thanks Pharan, that's really really useful!