2020
09-29
09-29
UGUI ScrollRect实现带按钮翻页支持拖拽
本文实例为大家分享了UGUIScrollRect带按钮翻页支持拖拽的具体代码,供大家参考,具体内容如下usingUnityEngine;usingSystem.Collections;usingUnityEngine.UI;usingUnityEngine.EventSystems;usingSystem.Collections.Generic;usingSystem;///<summary>///略知CSharp///</summary>publicclassScrollRectHelper:MonoBehaviour,IBeginDragHandler,IEndDragHandler{publicfloatsmooting=5;//滑动速度pub...
继续阅读 >