Jump to content

[SOLVED] UnigineScript not aware of #defines in system script


photo

Recommended Posts

Is it possible to make UnigineScript aware of #defines in system script (unigine.cpp)? I would like to use system script file for system-wide defines instead of user UnigineScript file or unigine.cfg if possible.

Link to comment

Hello,

Unfortunately, no. #defines specified on the system script side cannot be used in the world script.

However, you can specify all the required #defines in a separate file, save it in the data folder of your project and then include it in the world script.

For example:

#include <defines.h>
#include <core/unigine.h>

/*
 */
int init() {
	...
}
Link to comment
×
×
  • Create New...