using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; /// <summary> /// 无限循环List /// 作者:EdisonLee /// public class UILoop1 : UIBase { enum Direction { Horizontal, Vertical } [SerializeField] private Rec
1.现在unity做一个项目,各种插件各种包,于是项目资源就无限变大了,其实一些简单的功能可以自己写,这里就是试着使用UGUI编写一个摇杆功能 2.脚本如下: using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using System.Collections; public class UGUIJoystick : MonoBehaviour,IDragHandler{ public RectTran