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


  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
    • 上海杉蔓数字科技
how I can get the window height??
« on: May 19, 2012, 08: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: 3643
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: how I can get the window height??
« Reply #1 on: May 19, 2012, 11:36:55 PM »
Get Screen Height should return the height of the window...?