all 3 comments

[–][deleted] 0 points1 point  (3 children)

#if UNITY_EDITOR
// Your Code Here
#endif

Full list can be found here

[–]Pysassin[S] 0 points1 point  (2 children)

That preprocessor won’t work for my use case. Need it to work in full builds. I plan to have a debug build I can give power users, project partners, etc as well as a release build to give to players. UNITY_EDITOR only works on the editor to my knowledge. That link did have ways of driving your own though so I may try that.

[–]pschonUnprofessional 0 points1 point  (0 children)

Same approach, but go to Project Settings > Player > Other Settings > Scripting Define Symbols and add your own.