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.
http://docs.unity3d.com/Documentation/ScriptReference/Screen-currentResolution.html Code (csharp): using UnityEngine; using System.Collections; public class example : MonoBehaviour { void Example() { print(Screen.currentResolution); } }
tnx for response, but this is not what i need. this returns curent resolution, not the resolution of web player
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..