Day: March 31, 2015

  • Scaling Images to full screen in Unity

    First, you’d put the image into your scene and give it a name, in this case “mainStage”. Then in the code: float worldScreenHeight = Camera.main.orthographicSize * 2;         float worldScreenWidth = worldScreenHeight / Screen.height * Screen.width;         mainStage = GameObject.Find (“mainStage”);         SpriteRenderer sr = mainStage.GetComponent<SpriteRenderer>();         mainStage.transform.localScale = new Vector2(…