hello everyone. I have a spine animation and in this animation there is a Attachment that should change its position depending on the animation. I found this Attachment, but the problem is that in the UI space, the change of this Attachment is the same as in the usual space, although the animation itself moves perfectly in the UI space. how do I translate the coordinates of this point in UI space?
How i get position:
var bone = targetSlot.Bone;
Vector2 worldPosition = targetAttachment.GetWorldPosition(bone, skeletonGraphic.transform);
Vector3 canvasPosition =
skeletonGraphic.transform.TransformPoint(new Vector3(worldPosition.x, worldPosition.y, 0f));
whats wrong?