Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to Anchor UI element to a GameObject?

$
0
0
Hi guys,

I'm sure this must have been asked before, but I've searched the forums without success.

In a top-down 2D game I have a Player GameObject on screen, and I want that when I press a key, a UI element appears near the character; Let's say I have a UI selection screen in the shape of a circle (displaying weapons, skills, potions, etc) and I want this round UI element with the Player at its center when it appears, no matter where the character is. How would I achieve this?

I already...

How to Anchor UI element to a GameObject?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>