假设sublime文件夹在C:\\Users\\T430i\\Downloads\\Sublime Text Build 3059 x64\\ 则: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Sublime Text 3] @="Sublime Text 3" "Icon"="C:\\Users\\T430i\\Downloads\\Sublime Text Build
把此类放到 Editor下使用就OK 1 using UnityEngine; 2 using System.Collections; 3 using System.Collections.Generic; 4 using UnityEditor; 5 6 /// <summary> 7 /// 添加鼠标右键事件 8 /// </summary> 9 [InitializeOnLoad] 10 [ExecuteInEditMode] 11 public static class A