Playmaker Forum

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

Title: how I can get the window height??
Post by: kyy921 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???
Title: Re: how I can get the window height??
Post by: Alex Chouls on May 19, 2012, 11:36:55 PM
Get Screen Height should return the height of the window...?

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