Can you use transform.Translate with pixels instead of units?
I'm making a 2D game and I want to make a sprite move 36 pixels up instead of using units. Is there a way to do this?
I think it might have something to do with Camera.ScreenToWorldPoint or Camera.WorldToScreenPoint.
Comment
Units can be whatever standard method of measuring you want. If you want to make a 2D game where transform.Translate works in terms of pixels then design your game so that 1 unit = 1 pixel. For a 2D game set your camera to orthographic and have a script that sets the camera's orthographicSize to be 1/2 the screen height, i.e.
void Start()
{
Camera main = Camera.main;
main.orthographic = true;
maing.orthographicSize = Screen.height/2f;
}