public void Dispose() { #if UNITY_EDITOR if (end && GUILayout.Button("", EditorUtil.TipButton)) { MessageBoxWindow.ShowWindow(true, tip); } #endif GUILayout.EndHorizontal(); }
public AutoEditorTipButton(string tip, bool end = true) { this.tip = tip; this.end = end; GUILayout.BeginHorizontal(); #if UNITY_EDITOR if (!end && GUILayout.Button("", EditorUtil.TipButton)) { MessageBoxWindow.ShowWindow(true, tip); } #endif }