So I am having problem with on hover tooltip UI element to follow mouse cursor with some offset. I do not want for ui element to be centered on cursor while following it, but to have some offset values. The problem is with Scale with Screen Size ui scale mode. Whenever screen is scaled, my offset i not right. What should i do?
Vector2 pos = Input.mousePosition;
transform.position = new Vector2(pos.x + tooltipOffset.x, pos.y + tooltipOffset.y);