In your game code you may wrap certain features in Scripting Defines; this code will only be compiled and run in certain conditions or platforms, such as specific Unity Versions.
If you wish to include certain scripting defines in your Luna builds, you can enter these pre-processor symbols into the Scripting Defines section in the Luna UI, under Source code.
#if UNITY_2017_1_OR_NEWER//...Your Awesome Code...//#endif
Then include the name space inside the Luna Window. Navigate to the Code section and the Scripting Defines tab.
Luna respects specific Unity version for scripting defines.
Let's use an example to fully undestand it:
- While the
UNITY_2018will function if you are running Unity 2018, this will be skipped when running another version like Unity 2019.