ObjectGui is black with game disabled


photo

Recommended Posts

When I use an ObjectGui it seems to be completely black when the game is not enabled. I've tried it the sample project as well by adding engine.game.setEnabled(false); to the init function of gui_07.cpp and this is the result:

ObjectGui.jpg.38a8a8df04e5b8331d2491e9d75ac5f2.jpg

It seems Unigine has some kind of fade in animation for widgets, but while the main GUI is always updated even when the game is disabled, ObjectGui is not? In multiplayer sessions you generally keep the game disabled until all players are connected and ready, but 3D render might be enabled already so if there is an ObjectGui near the starting position of the player he will see this black square instead. Is there a way to force update this when the game is disabled?

Link to post

Bemined

Maybe you can simply display a regular plane mesh with some texture on it while waiting?

You also can try not to disable the Game, but rather set the scale to very small value (like 0.0000001).

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to post

Actually we use a WidgetCanvas on an ObjectGui to display a dynamic map, so a static texture is not really an option. Setting a very small scale might work, but exact timing is very important for our simulation so it would not be a preferred solution.

Link to post