Is there a way to flag an entire script or folder so that it only complies on specific platforms? I’m aware of the #defines that allow you to wrap a portion of a platform dependent code, but in my case I would rather just not compile the entire script on certain platforms.
1 Like
Use https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html and set Define Constraint, for ex., if you want for files located in assembly defintion folder to be compiled only for Android, set UNITY_ANDROID