Created
November 2, 2013 12:55
-
-
Save masa795/7278621 to your computer and use it in GitHub Desktop.
ディレクティブ一覧を取得する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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