Hello, I just wanted to know if the below code is fine/not a problem later down the line or would I have to copy paste the chunk of code for individual #if statement’s? Example Below:
Does this work:
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX
print("This is a test");
#endif
Or would I have to do this:
#if UNITY_EDITOR
print("This is a test");
#endif
#if UNITY_STANDALONE_WIN
print("This is a test");
#endif
#if UNITY_STANDALONE_OSX
print("This is a test");
#endif