- Home /
 
               Question by 
               Samael_00001 · May 20, 2014 at 04:00 PM · 
                gameobjectpositionscreenbottom  
              
 
              How to set position of 4 gameobjects at the bottom of the screen?
with width = ScreenWidth/4
               Comment
              
 
               
              You need add a lot more detail before anyone will be able to answer your question. What kind of game objects?
 
               Best Answer 
              
 
              Answer by OrbitGames · May 20, 2014 at 04:56 PM
You need to use Camera.ScreenToWorldPoint
         GameObject.Find("cube").transform.localScale = camera.ScreenToWorldPoint(new Vector3(Screen.width / 4, Screen.width / 4, camera.nearClipPlane));
         GameObject.Find("cube").transform.localPosition = camera.ScreenToWorldPoint(new Vector3(0, 0, camera.nearClipPlane));
it doesn't work
I'm trying to set the cube object position at the bottom left corner
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                