Eonirr

Untitled

Nov 22nd, 2026
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public void PlaceOver(RectTransform dice, RectTransform target)
  2. {
  3. dice.position = target.TransformPoint(target.rect.center); // center visu
  4.  
  5. dice.position = target.TransformPoint(target.position); // pivot
  6. }
Advertisement
Add Comment
Please, Sign In to add comment