Exemple #1
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        GameEditor window = (GameEditor)EditorWindow.GetWindow(typeof(GameEditor));

        window.Show();
    }
Exemple #2
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        GameEditor window = (GameEditor)EditorWindow.GetWindow(typeof(GameEditor));

        window.devMode = bool.Parse(PlayerPrefs.GetString(Constants.cst_DeveloperMode, "false"));
        window.Show();
    }
Exemple #3
0
    static void EditGame()
    {
        TextAsset file = Selection.activeObject as TextAsset;

        if (file != null)
        {
            GameEditor window = EditorWindow.GetWindow <GameEditor>("Game Editor");
            window.SetFile(file);
            window.Show();
        }
    }
Exemple #4
0
    static void ShowMyWindow()
    {
        GameEditor window = EditorWindow.GetWindow <GameEditor>();

        window.Show();
    }