创建有提示的ui组件

using UnityEditor;
using UnityEngine;
using System.Collections;
using Edelweiss.CloudSystem;
namespace Edelweiss.CloudSystemEditor { 
    public class OutputModeEditor{
        private GUIContent m_OutputButton;

        public void Initialize()//这个必须先调用
        {
            m_OutputButton = new GUIContent("导出","导出当前云的网格模型");
        }

        public void InspectorGUI()
        {
            EditorGUILayout.Space();
            InspectorSupport.Explanation("Output", "导出云相关操作", null);

            EditorGUILayout.Space();
            if (GUILayout.Button(m_OutputButton))
            {

                //...
            }
        }
        }
}

原文地址:https://www.cnblogs.com/luxishi/p/7280156.html