Compiler Defines

realvirtual.io 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 (realvirtual.io Starter, realvirtual.io Professional).

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

You can find the current compiler defines under File > Build Settings > Player Settings > Other Settings > Scripting Define Symbols.
In some cases, for your own individual developments, it might be necessary to understand our compiler defines. Here is a list and description of the used compiler defines.

Compiler Define Description
GAME4AUTOMATION Standard compiler define which needs to be set to enable realvirtual.io Standard and professional
GAME4AUTOMATION_PROFESSIONAL Compiler define which needs to be set only for realvirtual.io Professional. The standard setting of the compiler defines for realvirtual.io Professional is GAME4AUTOMATION; GAME4AUTOMATION_PROFESSIONAL
GAME4AUTOMATION_PLAYMAKER This compiler define needs to be set to be able to use the realvirtual.io Playmaker nodes. These nodes are only included in Professional version. You should set this define only if Playmaker is installed.
OPCUA4UNITY Compiler Define for OPCUA4UNITY
GAME4AUTOMATION_VISCUALSCRIPTING Compiler Define if Unity Visual Scripting package is installed and should be used by realvirtual.io
CINEMACHINE Compiler Define if Unitys Cinemachine is installed and should be used
GAME4AUTOMATION_AGX Turns on AGX Phyisics simulation capabilites in realvirtual.io if AGX Unity Plugin is installed

© 2022 in2Sight GmbH https://realvirtual.io - All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including printing, saving, photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.