The canvas referencePixelsPerUnit is 100
While in SkeletonData the scale is set to 0.015 .
I modified SkeletonDate scale back to 0.01 to fit referencePixelsPerUnit
I am not using mousePosition, but i do get screen space.
Still same result.
All i am trying to do is to be able to "drag" with mouse one of the bones so i can move it to other place on the screen.
Issue is that i do not drag bone directly, i use an empty image with rigidbody2D and collider behind the bone and i detect with it that it gets dragged and try to position the bone into that blank image position .
Using:
draggingObject.GetComponent<Rigidbody2D>().MovePosition(pos);
After that i send single to the bone to position it self based on the position of the draggable blank image.
It seems impossible to sync them together. but i guess i am doing something wrong 🙁
This really stuck my project.
Alternative solution would be, is to have a way to get the bone sprite, so i can attach it to the unity rigidbody2D sprite and somehow make the bone invisible.