Destined

James Oliver

  • Projects
    • Games
      • Mighty Marbles
      • Rogue Realms
      • MetaMini
    • Tutorials
      • Animate
      • Blender
      • Gamedev
      • Harmony
      • Unity
    • Apps
      • ThinkspaceAR
      • Education
      • Mars Yard Maps
      • Mars Yard Simulation
    • Arts
      • Animations
      • Artworks
      • Music
      • Guitars
  • News
  • Portfolio
  • Twitter
  • Contact

Day: June 11, 2015

Unity3D: Making a plane fill the camera

Posted on June 11, 2015February 16, 2023 by admin

I recently had a need in my development to make a plane fit the screen perfectly no matter what the resolution and aspect ratio of the device using an orthographic camera. Turns out it isn’t too hard using C# you just need this line: transform.localScale = new Vector3(Camera.main.orthographicSize * 2.0f* Screen.width / Screen.height, Camera.main.orthographicSize *[…]

Posted in Development, Tutorials

Posts navigation

contact@destined.com
Video tutorials

James Oliver