Search Unity

Detecting Web Player resolution

Discussion in 'Scripting' started by Rolands, Aug 28, 2012.

  1. Rolands

    Rolands

    Joined:
    Aug 15, 2010
    Posts:
    90
    hi all
    I need a bit of help figuring out haw to get Unity web player width and height. You can set web player to any posible resolutions(like 3000x100) , but it is not screen resolution, so haw do return this values form unity.
     
  2. keithsoulasa

    keithsoulasa

    Joined:
    Feb 15, 2012
    Posts:
    2,126
  3. Rolands

    Rolands

    Joined:
    Aug 15, 2010
    Posts:
    90
    tnx for response, but this is not what i need. this returns curent resolution, not the resolution of web player
     
  4. Tseng

    Tseng

    Joined:
    Nov 29, 2010
    Posts:
    1,217
    Screen.height, Screen.width.

    Read the docs, there are all members of "Screen" listed...
     
  5. Rolands

    Rolands

    Joined:
    Aug 15, 2010
    Posts:
    90
    omg i am geting retarded. i am using this all the time and for some reson i was thinking it dosent work in web player, i dont even know what i was thinking..