• RuntimesUnity
  • The size exported by Spine is very large



Why is the file exported from spine so large that a zoom of 0.01 is still much larger than the common size of unity? Can I set the unit in spine so that it can be the same size as unity and scale to 1?

    Related Discussions
    ...

    suanLoBeach spine-unity's default scale of 0.01 is there to match Unity's sprite system default of 100 pixels per unit. Harald's answer in the following thread will be helpful:
    为什么我们制作的sipne导入unity要缩放0.01后才是正常大小?

    There are several ways to adjust the size of the skeleton, but if you want your skeleton GameObjects to be displayed at the correct size with a scale of X:1 Y:1 Z:1 in Unity, you may want to reduce the scale of the root bone before exporting it from Spine, or change the scale parameter of the SkeletonDataAsset.
    If you are going to adopt the latter method, you may want to change the Default SkeletonData Scale in the Spine section of Unity's Preferences window before importing.

      Misaki Thank your report,I ll change Default SkeletonData Scale,I hope it doesn't cause me any trouble. If I want to bind some unity objects to the spine object, will this ratio affect the binding?

        suanLoBeach Thank your report,I ll change Default SkeletonData Scale,I hope it doesn't cause me any trouble.

        It just changes the value assigned at SkeletonData - Scale when first importing a new skeleton. It does not cause any side effects.

        suanLoBeach If I want to bind some unity objects to the spine object, will this ratio affect the binding?

        I assume that by "binding" you mean letting other GameObjects follow bones by e.g. a BoneFollower component. If not, please describe what exactly you have in mind.

        You can think of Skeleton Data - Scale only affecting the size of the mesh. When using a BoneFollower component or similar to attach other GameObjects to a bone, these objects are not scaled additionally by Skeleton Data - Scale, it will be normal scale (1, 1, 1). (That is, unless your bone has a different scale set and you are following bone's local scale.)

          Harald My character is a spine object, but the weapon may be other objects in unity. If it is bound to the spine character's hand, will the scaling of the spine affect this binding?

          Harald
          That is to say, this value will not affect the interaction between the spine character and other objects in the game?

          @suanLoBeach Still, no.

          You can also have a look at the source code if you still have doubts.