I’m creating a 3D game and would like to display a sprite on screen (2D aspect) on where you click kind of like how runescape displays a yellow cross where you click on the screen.
Thanks!
I’m creating a 3D game and would like to display a sprite on screen (2D aspect) on where you click kind of like how runescape displays a yellow cross where you click on the screen.
Thanks!
give it mouse coordinates (Unity - Scripting API: Input.mousePosition) and you get world position of them, there is only one tricky thing, the mouse doesn’t have Z so you need to change Z before you give the coords to ScreenToWorldPoint