Open MostHated opened 6 years ago
See this guide for more info on define symbols in Unity: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
I recommend using them as minimal as possible since every time you add one you now need to test your build with and without the define. However they do come in handy.
Under the hood, unity is doing this: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-define
Ah ok, I got ya. Definitely looks useful in specific situations. I appreciate it, thanks.
Hey there, I had a quick question about this. I have not really use defines before, when you add one like in your example gif it has to reference something within the code, doesn't it? If I am guessing correctly, the asset in itself won't actually do anything, but it allows you to quickly toggle on and off things if you already have your project setup to use them?
Thanks!