Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kyy921 on May 19, 2012, 11:25:28 AM

Title: how I can get the window height??
Post by: kyy921 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???
Title: Re: how I can get the window height??
Post by: Alex Chouls 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