Skip to content

Instantly share code, notes, and snippets.

View KevinThielen's full-sized avatar

Kevin Thielen KevinThielen

View GitHub Profile
@KevinThielen
KevinThielen / CustomDefines.cs
Last active July 24, 2024 13:21
[Unity] Create MenuItems dynamically to add/remove preprocessor macros.
using UnityEngine;
using UnityEditor;
using System.Text;
namespace MyUtil
{
[InitializeOnLoad]
public partial class CustomDefines
{
private const string ScriptPath = "/Util/Editor/MyDefines.cs"; //path including the name of to the (to be) generated File