把此类放到 Editor下使用就OK using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEditor; /// <summary> /// 添加鼠标右键事件 /// </summary> [InitializeOnLoad] [ExecuteInEditMode] public static class AddMouseRight { static Ad…
网站需要实现鼠标滚轮滚一下,页面向下滑向下一个锚点,由于前面有个一样式必须用jQuery1.3.2,而好多滚轮事件都使用了更高版本的jQuery,于是就从网上找了找 <script type="text/javascript"> var sel_index = -1 var sel_max = $(".billboard-hero").length - 1; function handle(delta) { var s = delta + ":…