Jump to content

[SOLVED] add some functions to engine.app to get information about desktop/monitors


photo

Recommended Posts

We only have the getWidth/getHeight from engine.app to get the engine window's width and height.

 

So I think if we can also get the virtual descktop's size and number of monitors and each monitor's resolution by some simple api calls. so we can set the best fullscreen mode depend on the monitor's resolution.

Link to comment
  • 3 weeks later...

You can use Interface plugin to obtain system information regarding number of monitors and their resolutions.

engine.interface.getNumScreens()
engine.interface.getScreenWidth()
engine.interface.getScreenHeight()
engine.interface.getScreenPositionX()
engine.interface.getScreenPositionY()
Moreover this plugin gives access to engine window position control.
Link to comment

ah, thanks, these functions don't exists in unigine manual.

 

and another question, is there any possible to have interface plugin loaded but limit all WidgetWindow/WidgetDialog not to use interface plugin to create a seperate window?

 

I want to use these function but I don't want any external window creatation. because in that way, any operation in that window will make engine exit fullscreeen mode.

Link to comment
×
×
  • Create New...