playMaker

Author Topic: how I can get the window height??  (Read 2313 times)

kyy921

  • Junior Playmaker
  • **
  • Posts: 50
    • 上海杉蔓数字科技
how I can get the window height??
« on: May 19, 2012, 11:25:28 AM »
I use ngui to create some Ui button,  so I want when i move the positon to an object, the object will show the button,
but ngui is put its object in its own ui camera, so I could not just set the button's screen positon,
I have to know the windows height and width, and use the (0,1)screen space to multipy,

so the final question how I can get the windows height and width? I can get sceen , but how to get the windows???

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: how I can get the window height??
« Reply #1 on: May 20, 2012, 02:36:55 AM »
Get Screen Height should return the height of the window...?

http://unity3d.com/support/documentation/ScriptReference/Screen