确认弹窗

if (GUILayout.Button("清空"))
{
    if (EditorUtility.DisplayDialog("警告","确定要...?","Ok","Cancel"))
    {
		// Do Something
    }
    else
    {
    	// Do Something
    }
}
posted @ 2021-11-03 22:33  Logarius  阅读(24)  评论(0)    收藏  举报