使用EditorWindow.ShowNotification在一个窗口中显示提示信息

在一段时间后自动淡出,用RemoveNotification可立马删除

public class WizardEditor : ScriptableWizard
{

    [MenuItem("Tools/CrerteWizard")]
    static void CrerteWizard()
    {
        ScriptableWizard.DisplayWizard<WizardEditor>("title", "createButton","otherButton");
    }

    void OnWizardOtherButton()
    {
        ShowNotification(new GUIContent("hello"));
    }
}
发布了24 篇原创文章 · 获赞 0 · 访问量 652

猜你喜欢

转载自blog.csdn.net/u014589770/article/details/105052166