随笔分类 -  Unity

关于动画融合
摘要:StateMachineBehaviour中OnStateEnter在融合开始时调用,OnStateExit在融合结束时调用 例子 State A: stand State B: walk, A->B 融合0.1s 融合开始前,现在处于A,则Animator.GetCurrentAnimatorCl 阅读全文

posted @ 2022-04-12 16:29 littleLong 阅读(206) 评论(0) 推荐(0)

纹理采样使用Tiling和Offset时需要注意Texture Type
摘要:当Tiling和Offset不为0时,如果需要采样Sprite格式的话需要把Wrap Mode设为Repeat,不然会采不到 阅读全文

posted @ 2021-07-13 15:45 littleLong 阅读(187) 评论(0) 推荐(0)

解析一个预设体上的引用资源并拷贝到新生成路径,同时替换预设体上的引用,指向新的拷贝。
摘要:using UnityEditor; using UnityEngine; using System.IO; using System.Collections.Generic; using UnityEngine.UI; using System.Text; public static class 阅读全文

posted @ 2019-05-22 16:40 littleLong 阅读(139) 评论(0) 推荐(0)

导航