Hi
I calculate webplayer resolution through javascript (on website). But how can Unity script get this resolution (to calculate positions of GUI elements etc.)?
This is like it worked before:
In the first frame, Unity script calls javascript function (on website) and the function calls unity script function with width and height parameters (which saves it to global variables). But I want unity to know it before the first frame. How to do this ?
What’s wrong about using Screen.width, Screen.height and Screen.dpi?