ataylor Posted October 1, 2015 Share Posted October 1, 2015 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
elvieness Posted October 6, 2015 Share Posted October 6, 2015 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
Recommended Posts