public static void Push(Texture tex) { _tex = tex; EditorTipWindow editorTipWindow = GetWindow <EditorTipWindow>(); editorTipWindow.minSize = new Vector2(_tex.width, _tex.height); editorTipWindow.Show(); }
public static void Push(string title, string message) { textArea = EditorStyles.textArea; textArea.richText = true; textArea.fontSize = 14; _message = message; EditorTipWindow editorTipWindow = GetWindow <EditorTipWindow>(); editorTipWindow.minSize = new Vector2(600, 0); editorTipWindow.titleContent.text = title; editorTipWindow.Show(); }