// ------------------------------------------------------------------------------------------------------------- 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(); }
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); }