Situation is following:
There is huge spine project (hundreds of bones and at least 50 slots) that is imported to Unity. Hierarchy is quite deep at some places (5 or 6 levels).
Some of those bones/slots are position markers for objects that will instantiated from Unity. And now I have to figure out how to get the positions from Spine to match the positions in Unity.
Currently the problem (if I am understanding this correctly) is that if in Unity I use findBone and use the Bone object then the position is only correct if there aren't any scales applied to objects between root and chosen bone.
So if in Spine I have leaf bone without any scaling that is in position x: 4067 y: -4571 then in Unity (after import) this will be x: 40,66535 y: -45,71016, and this is fine.
But if in Spine I have leaf bone that has scaling (2x for both X and Y) and is in position x: 1810 y: 1238 then in Unity (after import) this will be x: 9,047705 y: 6,188982, and this is problematic.
In Unity the problematic bone has AScale and Scale set to 1, and Worldscale is 0. I am assuming I can get the final scale by multiplying all the scales between Root and this bone together, but is there easier way to solve this?
I cannot modify original Spine file to make everything scale 1.0, and there aren't any scale animations that I should be worried about.