Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ディレクティブ一覧を取得する
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class ActiveScriptCompilationDefines : EditorWindow {
[MenuItem ("Window/Active Script Compilation Defines")]
static void Init () {
// Get existing open window or if none, make a new one:
EditorWindow.GetWindow<ActiveScriptCompilationDefines> (false, "Active Script Compilation Defines");
}
void OnGUI () {
if (GUILayout.Button("SHOW"))
{
foreach (string define in EditorUserBuildSettings.activeScriptCompilationDefines)
{
Debug.Log(define);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.