Version: Unity 6 Preview (6000.0)
Language : English
Special folders and script compilation order
Conditional compilation in Unity

Conditional compilation

This section covers the use of preprocessor directives and scripting symbols to conditionally compile sections of your C# code.

Topic Description
Conditional compilation in Unity An overview of how and when to use conditional compilation in your Unity scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
.
Unity scripting symbol reference A reference of the predefined scripting symbols Unity provides.
Custom scripting symbols Create your own custom scripting symbols via the Editor UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
, from scripts, or with an asset file.
Test conditional compilation Code example and steps to test your conditionally compiled code.
Special folders and script compilation order
Conditional compilation in Unity