上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: public class L33 : MonoBehaviour { public SpriteResolver spriteResolver; private Dictionary<string,SpriteResolver> equipDic = new Dictionary<string,Sp 阅读全文
posted @ 2025-04-02 16:22 cannedmint 阅读(30) 评论(0) 推荐(0)
摘要: public class L31 : MonoBehaviour { // Start is called before the first frame update void Start() { //psb相关参数 //Mosaic 将图层生成Sprite并合并成单个纹理 //Character 阅读全文
posted @ 2025-04-02 10:30 cannedmint 阅读(21) 评论(0) 推荐(0)
摘要: public class L30 : MonoBehaviour { // Start is called before the first frame update void Start() { //1.把Sprite设置为图集 //2.对Sprite进行切片 //完成这两步之后才能对图集图片进行 阅读全文
posted @ 2025-04-02 10:03 cannedmint 阅读(11) 评论(0) 推荐(0)
摘要: public class L29 : MonoBehaviour { // Start is called before the first frame update void Start() { //Unity中制作2D骨骼动画 //1.使用2D Animation制作 //2.使用跨平台骨骼动画 阅读全文
posted @ 2025-04-02 09:40 cannedmint 阅读(24) 评论(0) 推荐(0)
摘要: public class L28 : MonoBehaviour { public Sprite[] sprites; private SpriteRenderer sr; private float time=0; private int nowIndex = 0; // Start is cal 阅读全文
posted @ 2025-04-01 17:23 cannedmint 阅读(86) 评论(0) 推荐(0)
摘要: public class L27 : MonoBehaviour { private Animator ani; // Start is called before the first frame update void Start() { //Animator相关参数 //Avatar 对应的替身 阅读全文
posted @ 2025-04-01 16:49 cannedmint 阅读(51) 评论(0) 推荐(0)
摘要: public class L26 : MonoBehaviour { // Start is called before the first frame update void Start() { //有限状态机表示有限个状态以及在这些状态之间的转移和动作等行为的数学模型 //状态指拥有的所有状态 阅读全文
posted @ 2025-04-01 16:29 cannedmint 阅读(17) 评论(0) 推荐(0)
摘要: public class L24 : MonoBehaviour { // Start is called before the first frame update void Start() { #region Animation窗口 //原理: //制作动画时,记录在固定时间点对象挂载的脚本的变 阅读全文
posted @ 2025-03-28 21:23 cannedmint 阅读(19) 评论(0) 推荐(0)
摘要: public class L23 : MonoBehaviour { //瓦片地图信息,可以得到瓦片格子(场景中的Tilemap物体) public Tilemap map; //瓦片位置控制,坐标转换(场景中的Grid物体) public Grid grid; //瓦片资源基类,得到瓦片资源(本地 阅读全文
posted @ 2025-03-28 20:35 cannedmint 阅读(41) 评论(0) 推荐(0)
摘要: public class L22 : MonoBehaviour { // Start is called before the first frame update void Start() { #region rule tile 规则瓦片 //定义不同方向连接图片的规则 //Tiling Rul 阅读全文
posted @ 2025-03-28 20:11 cannedmint 阅读(12) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页