This tool provides a Unity Editor Window to allow full control over custom define directives.
- Unity 5.6 Compatible
- Add/remove custom #define directives.
- Select which platforms the directives are active on.
- Enable/disable directives via editor.
- Enable/disable directives via script.
Editor Window
The Editor Window can be accessed by clicking Window > Custom Define Manager.
With the Editor Window, you can add new directives, delete directives, edit the name, select which platform to be active on, and enable or disable the directives.
CustomDefineManager.cs Class
This class provides to ability to enable and disabled directives via script:
CustomDefineManager.DisableDirective()
CustomDefineManager.EnableDirective()