Kuroko669420

Use Bounding Box Follower + Skeleton Mecanim ,no prob
Bounding Box Follower and Skeleton Mecanim.png

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

Bounding box in spine:
in spine.png

Unity version 2020.3.13f1
What's wrong with Bounding Box Follower + BoneFollower?
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Kuroko669420
  • Postovi: 6

Harald

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?
Avatar
Harald

Harri
  • Postovi: 3568

Kuroko669420

Harald je napisao/la: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
spine-unity runtime version.png


Inspector settings:
Bounding Box Follower GameObject.png

Spine GameObject.png
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Kuroko669420
  • Postovi: 6

Harald

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

Harri
  • Postovi: 3568

Kuroko669420

Harald je napisao/la: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:
Kuroko669420
  • Postovi: 6

Harald

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.
Avatar
Harald

Harri
  • Postovi: 3568

Kuroko669420

Harald je napisao/la: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:.
Kuroko669420
  • Postovi: 6

Harald

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 je napisao/la:* 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.
Avatar
Harald

Harri
  • Postovi: 3568

Kuroko669420

Harald je napisao/la: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 je napisao/la:* 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:
follow parent world scale.png

Thank you Harald! :handshake:
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Kuroko669420
  • Postovi: 6

Harald

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

Harri
  • Postovi: 3568


Natrag na Unity