using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class LevelButtonScrollRect : MonoBehaviour ,IBeginDragHandler,IEndDragHandler
{
private ScrollRect scrollRect;
public float smoothing = 4; //滑动速度
private float[] pageArray=new float[]{
0,0.33333f,0.66666f,1 }; //分页位置数组,根据页数设置0-1区间
public Toggle[] togg
Unity之依据页数或单选按钮进行滚动视图的切换
最新推荐文章于 2024-06-18 15:14:37 发布