随笔分类 -  Unity编辑器杂项知识

摘要:EditorUtility.OpenFilePanel (); EditorUtility.OpenFolderPanel (); 阅读全文
posted @ 2021-11-03 22:34 Logarius 阅读(48) 评论(0) 推荐(0)
摘要:通过ObjectField就可以轻松实现,问题在于如何获得脚本对象? MonoScript.FromMonoBehaviour可以获得一个MonoScript对象,而MonoScript继承TextAsset继承Object GUI.enabled = false; EditorGUILayout. 阅读全文
posted @ 2021-11-03 22:34 Logarius 阅读(47) 评论(0) 推荐(0)
摘要:if (GUILayout.Button("清空")) { if (EditorUtility.DisplayDialog("警告","确定要...?","Ok","Cancel")) { // Do Something } else { // Do Something } } 阅读全文
posted @ 2021-11-03 22:33 Logarius 阅读(24) 评论(0) 推荐(0)