Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void PlaceOver(RectTransform dice, RectTransform target)
- {
- dice.position = target.TransformPoint(target.rect.center); // center visu
- dice.position = target.TransformPoint(target.position); // pivot
- }
Advertisement
Add Comment
Please, Sign In to add comment