05 2021 档案
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; public class DataApdater<T> { #region 字段 //保存的所有数据 public List<T> allDa
阅读全文
摘要:主要内容:1、无限滚动方法的完善。 2、数据适配器。 3、基础知识补充 一、无限滚动方法的完善 ①逻辑流程图 ②脚本分析图 ③代码:无线循环 ( 获取子节点、实现方法:添加头和尾,移除头和尾、添加简单数据库进行数据适配) 二、数据适配器 ①逻辑流程图 ②脚本分析图 ③代码 无限循环 之 数据适配器
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public enum LoopScrollViewType { Horizontal, Vert
阅读全文
摘要:using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class LoopItem : MonoBehavio
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; public class RotationScaleScrollView : ScalePageScrollView { public flo
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; public class ScalePageScrollView : PageScrollView { #region 字段 // 所有页的o
阅读全文
摘要:using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; //枚
阅读全文
摘要:主要内容:1、分页滚动功能扩展—加入旋转角度。 2、无限滚动。 3、基础知识补充 一、分页滚动功能扩展—加入旋转角度 ①流程图: ② 脚本解析图: ③代码:分页滚动功能扩展之加入旋转角度 二、无限滚动 ① 无限滚动的逻辑流程图 ② 无限滚动的代码解析 ③ 无限滚动的相关代码: 代码一:无限循环 (监
阅读全文
摘要:主要内容:1 检测代码的三种方法。 2 分页滚动功能扩展。 3 基础知识补充。 一、检测代码的三种方法: ①断点调试 F5 到下一个断点 ②设为公共变量 Public Vctor2 a ; 在start中加入监听 rect.onValueChanged.AddListener (" 函数名 ") ;
阅读全文
摘要:此篇主要内容:1、代码逻辑(流程图呈现) 2、具体实现语句 3、脚本(脚本为完善后的) 一、分页逻辑图 2、语句分析与记录 3、脚本 using System; using System.Collections; using System.Collections.Generic; using Uni
阅读全文
摘要:主要实现的是无限滚动功能(重点实现开始的自动添加与超出边界外的自动删除)如图gif.。 脚本的挂载与预制体的拖放如下图所示: LoopScrollView脚本如下: using System.Collections; using System.Collections.Generic; using U
阅读全文
摘要:升级内容主要是: 1、代码实现弹窗的打开与关闭 2、轮播图实现角度的变化 3、无限滚动图 边界外的添加与释放 实现代码如下: 1、基类脚本实现开关的调用继承 using System.Collections; using System.Collections.Generic; using Unity
阅读全文
摘要:模仿地址:bilibiliuGui 代码如下: 第二段代码继承第一段。 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Eve
阅读全文
摘要:1,、自定义加载器 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using XLua; 5 6 public class CreateLoader : MonoBehav
阅读全文
摘要:Lua学习教程结尾部分笔记 笔记十九 —— 关于文件读取、写入 --[[ 文件读取 (简单模式) --]] --[[ --io.XXXX 首先创建一个名为data的txt文件,然后使用io方法 file = io.open("data.txt","r") io.input(file) print(i
阅读全文
摘要:第一次写博客,激动又好奇,网页界面真的是朴实无华,像极了程序员该有的样子。 开始写博客,就是想记录一下作为游戏开发工程师的成长经历,可能现在的自己对岗位也不是很了解,自己的水平也比较菜,写博客激励一下自己坚持不断的学习下去。 今天是上班的第三天,目前还在学习Lua语言,一下是这三天来的一些学习笔记。
阅读全文
浙公网安备 33010602011771号