• Unity
  • Bounding Box Follower and BoneFollower Collider Issue

Use Bounding Box Follower + Skeleton Mecanim ,no prob

Use Bounding Box Follower + BoneFollower ,Unity Collider size and location is not right

Bounding box in spine:

Unity version 2020.3.13f1
What's wrong with Bounding Box Follower + BoneFollower?

Related Discussions
...

Could you please post your Inspector settings of the BoneFollower and BoundingBoxFollower components?
Which version of the spine-unity runtime (name of the unitypackage, also shown in version.txt file) are you using?

Harald wrote

Could you please post your Inspector settings of the BoneFollower and BoundingBoxFollower components?
Which version of the spine-unity runtime (name of the unitypackage, also shown in version.txt file) are you using?

Thank you for your reply.

The spine-unity runtime version:
Package version: spine-unity-3.8-2021-07-12.unitypackage

Inspector settings:

At the BoneFollower component, did you try enabling Follow Local Scale?

5 days later
Harald wrote

At the BoneFollower component, did you try enabling Follow Local Scale?

I tried Follow Local Scale and the other combinations of these options also. :p
But there is still something wrong. :think:

Sorry to hear that. Could you please send us a minimal Unity project that still shows this problem, you can either post a download link on this forum or send us a zip package to contact@esotericsoftware.com? Please briefly mention this forum thread URL in the email so that we know the context. Then we can have a look at what's going wrong.

Harald wrote

Sorry to hear that. Could you please send us a minimal Unity project that still shows this problem, you can either post a download link on this forum or send us a zip package to contact@esotericsoftware.com? Please briefly mention this forum thread URL in the email so that we know the context. Then we can have a look at what's going wrong.

Thank you for your careful help.
I have sent the package to contact@esotericsoftware.com and mentioned this forum thread URL :handshake:.

Thanks for sending the reproduction package.

Unfortunately the Unity project seems to include your whole project with 10 scenes and additional third-party assets, instead of being a minimal reproduction Project with one scene and only a single skeleton. When I opened it, it was even stuck in an import loop for 8 minutes, perhaps because the project is 1GB in size. It should be showing the problem with a minimum of scripts involved to trigger the problematic behaviour. It would be best when it's automatically triggered when playing the scene without any user input required.

Could you please strip down your project accordingly and send it again? You can also delete the Library directory before packing, as it only contains imported data. Then we can have a look at the project and efficiently find any problems.


Thanks for sending the updated Unity project, we can now see the problem. It's basically that BoneFollower provides no option to respect parent bone scale in any way. Your skeleton has a bone with uniform scale 0.4 in the hierarchy, which is unfortunately ignored since the BoneFollower only follows the bone local scale.

We have just added a parameter to BoneFollower and BoneFollowerGraphic:

changelog.md wrote
  • BoneFollower and BoneFollowerGraphic now provide an additional Follow Parent World Scale parameter to allow following simple scale of parent bones (rotated/skewed scale can't be supported).

New spine-unity 4.0 and 4.1-beta unitypackages are available for download here as usual:
Spine Unity Download
If you want to integrate the changes to your 3.8 spine-unity installation, you can simply copy the BoneFollower.cs and BoneFollowerInspector.cs files over your respective files. You can do the same with BoneFollowerGraphic.cs and BoneFollowerGraphicInspector.cs if you need this component updated as well.

Harald wrote

Thanks for sending the reproduction package.

Unfortunately the Unity project seems to include your whole project with 10 scenes and additional third-party assets, instead of being a minimal reproduction Project with one scene and only a single skeleton. When I opened it, it was even stuck in an import loop for 8 minutes, perhaps because the project is 1GB in size. It should be showing the problem with a minimum of scripts involved to trigger the problematic behaviour. It would be best when it's automatically triggered when playing the scene without any user input required.

Could you please strip down your project accordingly and send it again? You can also delete the Library directory before packing, as it only contains imported data. Then we can have a look at the project and efficiently find any problems.


Thanks for sending the updated Unity project, we can now see the problem. It's basically that BoneFollower provides no option to respect parent bone scale in any way. Your skeleton has a bone with uniform scale 0.4 in the hierarchy, which is unfortunately ignored since the BoneFollower only follows the bone local scale.

We have just added a parameter to BoneFollower and BoneFollowerGraphic:

changelog.md wrote
  • BoneFollower and BoneFollowerGraphic now provide an additional Follow Parent World Scale parameter to allow following simple scale of parent bones (rotated/skewed scale can't be supported).

New spine-unity 4.0 and 4.1-beta unitypackages are available for download here as usual:
Spine Unity Download
If you want to integrate the changes to your 3.8 spine-unity installation, you can simply copy the BoneFollower.cs and BoneFollowerInspector.cs files over your respective files. You can do the same with BoneFollowerGraphic.cs and BoneFollowerGraphicInspector.cs if you need this component updated as well.

I have switched to spine-unity 4.0 and enabled follow parent world scale.
It's ok now! :grinteeth:

Thank you Harald! :handshake:

Glad to hear it's working as desired now, thanks for letting us know! 8)