I am having trouble finding a way to set a gameobject's position with regards to the screen size. I am building a 2d game that I will be putting on iPhone, iPad, and Android. I need to be able to set the object's position to a percent of the view.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
The solution ended up being pretty simple. What I had to do is use the conversion of ViewportToWorldPoint.
The decimals are percentages of the screen. and the Z is distance from the camera. |
|||
|
|