Create GUI UI at GameObject position

By shell

I want to create a GUI UI at the position of a GameObject, specifically this example menu:

I’ve tried this:

new Rect (playerPosX, playerPosY, 100, 90)

as the first argument using gameObject.transform.position.x and y but the GUI is top-left based.

How do I do this?

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273