![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unity
歨峀
生命不息,奋斗不止
展开
-
Unity UGUI按页滑动
实现UGUI滚动滚动视图下 滑动翻页,其中主要是Mathf.Lerp(start,end,time)插值计算(对于插值计算不了解的话 可以看看unity官网介绍https://docs.unity3d.com/ScriptReference/Mathf.Lerp.html)代码如下:using System;using UnityEngine;using UnityEngine.EventSystems;using UnityEngine.UI;enum Drag_State{ ..原创 2020-05-24 23:22:22 · 444 阅读 · 0 评论 -
unity 修改默认的模板类
使用unity默认模板创建C#脚本或者是Shader脚本后其实有些内容项目中并没有普遍用到,于是我们不得不每次创建完新的C#脚本再删除其中并不需要的部分,比如 Update,亦或者 我们需要在新建的脚本顶部添加些脚本说明,但 脚本说明 有些内容其实是通用的,这个时候可以通过修改unity默认的模板类来省去部分操作。举例,unity默认C#脚本模板如下:using System.Coll...原创 2020-04-13 23:11:38 · 514 阅读 · 1 评论