- Home /
 
               Question by 
               alexsafayan · Sep 18, 2016 at 01:40 PM · 
                unity 5javascriptpositionunity 2d  
              
 
              Convert r2d.position.x to Pixels UnityScript
When calling: print(GetComponent(Rigidbody2D).position.x); it gives me 1.46. What type of value is this? Int, Float, Object? 
When calling: print(Screen.width); it gives me 949. So this is a pixel counting of the width, how do I get a pixel counting of the position.x of an object?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                