鸟语天空
EditorUtility.DisplayDialog()
post by:追风剑情 2016-10-31 15:50

显示一个模态对话框

using UnityEngine;
using UnityEditor;
using System.Collections;
/// <summary>
/// 编辑器工具
/// </summary>
public class EditorUtilityTest {

    [MenuItem("Test/DisplayDialog")]
    public static void DisplayDialog()
    {
        bool ok = EditorUtility.DisplayDialog("title", "message", "ok", "cancel");
        Debug.Log("ok="+ok);
    }
}

 

效果

222222.png

 

评论:
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容