Skip to content

Instantly share code, notes, and snippets.

@masa795
Created November 2, 2013 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masa795/7278621 to your computer and use it in GitHub Desktop.
Save masa795/7278621 to your computer and use it in GitHub Desktop.
ディレクティブ一覧を取得する
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