Jump to content

Hide Unigine splash


photo

Recommended Posts

Priyank,

 

You need to change World (and maybe in some cases System) splash screen. Please, refer to the Splash class methods documentation here: https://developer.unigine.com/en/docs/2.4/api/library/engine/class.splash

The best choice is to put this code in SystemLogic (in case of C++/C# application) or by modifying system script (unigine.cpp - UnigineScript) in init() after systemInit().

 

Note, that even if you will disable splash (pass NULL to setWorld() / setSystem) it will render black screen with LOADING text, so it's better to use some blank textures instead.

 

Thanks!

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

Link to comment

Please correct me if I am wrong.

 

  • By SystemLogic you mean AppSystemLogic::init(), this way we have to change the Unigine source every time we upgrade to new version
  • After systemInit() you mean before Unigine::Engine::init
Link to comment
  • By SystemLogic you mean AppSystemLogic::init(), this way we have to change the Unigine source every time we upgrade to new version

That's the sources of your project, so it will be no need to change it every upgrade.

 

  • After systemInit() you mean before Unigine::Engine::init

In unigine.cpp inside your <Project>/data/<project_name>/unigine.cpp inside init() after systemInit().

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

Link to comment

The issue was basically USE_CUSTOM_SPLASH define is not created if we build the engine using "build.py", although in SConstruct file splash is set to 1

BoolVariable('splash','Custom splash',1), 

and looks like passing --features=splash in as extra options may enable that.

 

Is this expected? I thought values given in SConstruct will override the parameter value.

Link to comment

Hi Priyank,
 
All flags are enabled by default if you will rebuild engine via Visual Studio. By default in build.py this feature is disabled and invocation of build.py will overwrite Sconstruct flag (1 -> 0).

 

You have to explicitly specify features that you need in build. Please, keep in mind that you don't have to use '=' sign to specify features that you want (it will not work with multiple features):

build.py --features splash microprofile //correct
build.py --features=splash microprofile //will only enable splash feature

More likely that behavior will be changed in future.

Sorry for the inconvenience caused.

  • Like 1

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

Link to comment
×
×
  • Create New...