Search Unity

find size view camera

Discussion in 'Scripting' started by Bolt, Oct 22, 2017.

  1. Bolt

    Bolt

    Joined:
    Dec 15, 2012
    Posts:
    296
    I wanted to know something. With a spell camera I can find the screen size of the device by doing Camera.main.aspect * Camera.main.orthographicSize; doing so I know where I can instantiate objects out of the screen. Can I do the same with a prospective camera? if so how?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618