private var myMenu:ContextMenu; private function setViewerVersion():void { var menuItem:ContextMenuItem = new ContextMenuItem("技术支持:中科天宇软件有限公司", true, true); menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function(event:ContextMenu…
需求 为Unity的Editor窗口添加右键菜单 实现代码 // This example shows how to create a context menu inside a custom EditorWindow. class MyGenericMenu extends EditorWindow { @MenuItem("Game/Open Window") static function Init () { var window = GetWindow (MyGenericMe…