Exemplo n.º 1
0
    // -------------------------------------------------------------------------------------------------------------
    public static void ShowLog(string title, string log)
    {
        // Get existing open window or if none, make a new one:
        ELogWindow win = EditorWindow.GetWindow <ELogWindow>(true, "Log Window");

        Window = win;

        Window.mTitle = title;
        Window.mLog   = log;
        Window.mLogScrollViewPosition = Vector2.zero;

        Window.OnDisable();
    }
Exemplo n.º 2
0
    static void ShowObjectsPaths()
    {
        GameObject [] gos   = Selection.gameObjects;
        string        paths = string.Empty;

        foreach (GameObject go in gos)
        {
            if (paths != string.Empty)
            {
                paths += "\n";
            }

            paths += EditorUtilities.PathTo(go);
        }

        ELogWindow.ShowLog("Objects' paths", paths);
        //Debug.Log(paths);
    }