Compiler Defines uses some compiler defines (also called Scripting Define Symbols) for managing different configurations. Compiler defines are switches which can be set to define which part of the C# source code are compiled or not. Sometimes it is necessary to use compiler defines to prevent unwanted compiler error messages. Which compiler defines needs to be set is depended on the Assets you purchased ( Starter, Professional).

Most compiler defines are usually created automatically once you install the Asset. You can reset the settings, including the compiler defines, by selecting realvirtual > Apply standard settings:

You can find the current compiler defines under File > Build Settings > Player Settings > Other Settings > Scripting Define Symbols:

Some interfaces are needing special Complier Defines - this is mentioned on the Interface documentation page.

Here is a list and description of the used compiler defines. (before 2022 - GAME4AUTOMATION)

Compiler DefineDescription


Standard compiler define which needs to be set to enable Standard and professional


Compiler define which needs to be set only for Professional. The standard setting of the compiler defines for Professional is GAME4AUTOMATION; GAME4AUTOMATION_PROFESSIONAL


This compiler define needs to be set to be able to use the Playmaker nodes. These nodes are only included in Professional version. You should set this define only if Playmaker is installed. See Playmaker Visual Scripting


Compiler Define for OPCUA


Compiler Define if Unity Visual Scripting package is installed and should be used by See Unity Visual Scripting


Compiler Define if Unitys Cinemachine is installed and should be used.


Turns on AGX Phyisics simulation capabilites in if AGX Unity Plugin is installed


Needed for BestHTTPV2 based interfaces like TwinCAT HMI or MQTT


Needed for BESTMQTT v1 base interfaces like MQTT


Needed for JSON based interfaces like TwinCAT HMI


Needed for BestHTTP V3 based interfaces like TwinCAT HMI or MQTT


Needed for BESTMQT V3 based interfaces like MQTT

Last updated