I tried with screen.width and screen.height but on mobile devices the position of gameObject is incorrect. How can I do?
sorry for my poor english…
I tried with screen.width and screen.height but on mobile devices the position of gameObject is incorrect. How can I do?
sorry for my poor english…
What are you asking exactly? Are you trying to Instantiate a GameObject on the screen?
I’m trying to position an object in a precise position of the screen whatever it is, for example in the upper left
Try this. Another option is raycasting from the camera and moving the object to the hit point.
thank you so much