using UnityEngine;
using UnityEditor;
using System.Collections;
/// <summary>
/// Version: V1.0
/// Author: jamesliu
///Created time: 2017/03/16 Thursday 10:27:34
/// </summary>
namespace ACTEditor
{
public class ACTMainWindow : EditorWindow
{
#region Declarations
#endregion
[MenuItem ("Window/Action Editor")]
static void Init ()
{
EditorWindow.GetWindow (typeof (ACTMainWindow));
}
#region Main
void OnEnable()
{
this.title = "Action Editor";
this.minSize = new Vector2(500,300f);
}
#endregion
}
}
本文介绍了一个使用C#编写的Unity编辑器窗口示例。该窗口名为“ActionEditor”,通过菜单项初始化,并设置其最小尺寸为500x300像素。作者为jamesliu,创建时间为2017年3月16日。
626

被折叠的 条评论
为什么被折叠?



