在Editor下监听按键有以下几种方式: 自定义菜单栏功能: using UnityEngine; using UnityEditor; public static class MyMenuCommands { [MenuItem("My Commands/First Command _p")] static void FirstCommand() { Debug.Log("You used the shortcut P"); } [MenuItem("M
用Handles可以直接在GUI下绘制贝塞尔 using UnityEditor; using UnityEngine; using System.Collections; public class GUIBezier : EditorWindow { Vector3 mOri; Vector3 mEnd; Vector3 mOriTang; Vector3 mEndTang; [MenuItem("GUIBezierTest/GUIBezier")] public static vo