摘要:
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class LoopItem : MonoBehavio 阅读全文
posted @ 2021-05-28 17:01
郭天真
阅读(162)
评论(0)
推荐(0)
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RotationScaleScrollView : ScalePageScrollView { public flo 阅读全文
posted @ 2021-05-28 16:57
郭天真
阅读(66)
评论(0)
推荐(0)
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ScalePageScrollView : PageScrollView { #region 字段 // 所有页的o 阅读全文
posted @ 2021-05-28 16:54
郭天真
阅读(72)
评论(0)
推荐(0)
摘要:
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; //枚 阅读全文
posted @ 2021-05-28 16:53
郭天真
阅读(302)
评论(0)
推荐(0)
摘要:
主要内容:1、分页滚动功能扩展—加入旋转角度。 2、无限滚动。 3、基础知识补充 一、分页滚动功能扩展—加入旋转角度 ①流程图: ② 脚本解析图: ③代码:分页滚动功能扩展之加入旋转角度 二、无限滚动 ① 无限滚动的逻辑流程图 ② 无限滚动的代码解析 ③ 无限滚动的相关代码: 代码一:无限循环 (监 阅读全文
posted @ 2021-05-27 20:05
郭天真
阅读(80)
评论(0)
推荐(0)
摘要:
主要内容:1 检测代码的三种方法。 2 分页滚动功能扩展。 3 基础知识补充。 一、检测代码的三种方法: ①断点调试 F5 到下一个断点 ②设为公共变量 Public Vctor2 a ; 在start中加入监听 rect.onValueChanged.AddListener (" 函数名 ") ; 阅读全文
posted @ 2021-05-26 20:14
郭天真
阅读(81)
评论(0)
推荐(0)
摘要:
此篇主要内容:1、代码逻辑(流程图呈现) 2、具体实现语句 3、脚本(脚本为完善后的) 一、分页逻辑图 2、语句分析与记录 3、脚本 using System; using System.Collections; using System.Collections.Generic; using Uni 阅读全文
posted @ 2021-05-25 20:52
郭天真
阅读(87)
评论(0)
推荐(0)
摘要:
主要实现的是无限滚动功能(重点实现开始的自动添加与超出边界外的自动删除)如图gif.。 脚本的挂载与预制体的拖放如下图所示: LoopScrollView脚本如下: using System.Collections; using System.Collections.Generic; using U 阅读全文
posted @ 2021-05-24 19:12
郭天真
阅读(57)
评论(0)
推荐(0)
摘要:
升级内容主要是: 1、代码实现弹窗的打开与关闭 2、轮播图实现角度的变化 3、无限滚动图 边界外的添加与释放 实现代码如下: 1、基类脚本实现开关的调用继承 using System.Collections; using System.Collections.Generic; using Unity 阅读全文
posted @ 2021-05-21 20:06
郭天真
阅读(59)
评论(0)
推荐(0)
摘要:
模仿地址:bilibiliuGui 代码如下: 第二段代码继承第一段。 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Eve 阅读全文
posted @ 2021-05-20 20:09
郭天真
阅读(55)
评论(0)
推荐(0)