コード例 #1
0
        static public void ShowReadme(string name, string text, bool richText, bool markdownish, Component component, bool force)
        {
            if (!ShouldShowReadme(force))
            {
                return;
            }

            System.Type t = GetWindowType();
            if (t != null)
            {
                UnityEditor.EditorWindow w = t.GetMethod("GetInstance").Invoke(null, null) as UnityEditor.EditorWindow;
                if (w != null)
                {
                    t.GetMethod("SetContent").Invoke(w, new object[] { name, text, richText, markdownish, component });
                    w.ShowUtility();
                }
            }
        }