Scale to Full screen

Apr 17, 2011 at 12:47 PM

Is there any way to have the Game window change size so that it occupies the entire plug-in space?

It looks like Height and Width are required on the Game object at runtime (otherwise a validation error is raised). And if I try to change the Height and Width at runtime (after initialization), it seems to ignore the change.

My scenario is to have a game that always takes up the full available plug-in space, even after a browser resize.


Apr 19, 2011 at 4:47 AM

Hi, maybe it would be helpfull.

Apr 19, 2011 at 7:37 AM

Because of the software rendering in SL3/4 - this limitation was enforced. Moving forward with further SL5 development, this limitation can go away and also full-screen support should be added. 

But, for backwards compatibility for now - I could add support for resize, which would be possible on SL3/4 rendering as well - if that is helpful. 

Apr 19, 2011 at 12:22 PM

Thanks, I think it would be great to have support for resize! (Mitrich, thanks for the link but it looks like that is a one-time resize - I would like to resize the Game canvas whenever the browser changes size).