摘要: public class L24 : MonoBehaviour { // Start is called before the first frame update void Start() { #region Animation窗口 //原理: //制作动画时,记录在固定时间点对象挂载的脚本的变 阅读全文
posted @ 2025-03-28 21:23 cannedmint 阅读(8) 评论(0) 推荐(0)
摘要: public class L23 : MonoBehaviour { //瓦片地图信息,可以得到瓦片格子(场景中的Tilemap物体) public Tilemap map; //瓦片位置控制,坐标转换(场景中的Grid物体) public Grid grid; //瓦片资源基类,得到瓦片资源(本地 阅读全文
posted @ 2025-03-28 20:35 cannedmint 阅读(26) 评论(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 阅读(10) 评论(0) 推荐(0)
摘要: public class L21 : MonoBehaviour { // Start is called before the first frame update void Start() { #region Tilemap Renderer //Sort Order 设置所选瓦片地图上的瓦片排 阅读全文
posted @ 2025-03-28 17:55 cannedmint 阅读(40) 评论(0) 推荐(0)
摘要: public class L20 : MonoBehaviour { // Start is called before the first frame update void Start() { //Tilemap一般称为瓦片地图 //Tilemap和SpriteShape的异同 //都用于制作2 阅读全文
posted @ 2025-03-28 17:22 cannedmint 阅读(22) 评论(0) 推荐(0)
摘要: public class L19 : MonoBehaviour { // Start is called before the first frame update void Start() { #region SpriteShapeController //Is Open Ended 是否开放, 阅读全文
posted @ 2025-03-28 16:30 cannedmint 阅读(18) 评论(0) 推荐(0)
摘要: public class L18 : MonoBehaviour { // Start is called before the first frame update void Start() { //制作2D游戏场景中的不规则地形 //导入SpriteShape //Use Sprite Bord 阅读全文
posted @ 2025-03-28 15:58 cannedmint 阅读(14) 评论(0) 推荐(0)
摘要: public class L17 : MonoBehaviour { // Start is called before the first frame update void Start() { //效应器是配合碰撞器一起使用,可以让游戏对象在相互接触时产生一些特殊的物理作用 //可以通过2D效应 阅读全文
posted @ 2025-03-28 15:37 cannedmint 阅读(53) 评论(0) 推荐(0)
摘要: public class L16 : MonoBehaviour { // Start is called before the first frame update void Start() { //物理材质决定了物体之间产生的运动形式 //Friction 摩擦系数 //Bounciness 弹 阅读全文
posted @ 2025-03-28 11:33 cannedmint 阅读(8) 评论(0) 推荐(0)
摘要: public class L15 : MonoBehaviour { // Start is called before the first frame update void Start() { #region 圆形碰撞器 //Used by Effector 是否被附加的2D效应器使用 #end 阅读全文
posted @ 2025-03-28 11:06 cannedmint 阅读(15) 评论(0) 推荐(0)
摘要: public class L14 : MonoBehaviour { // Start is called before the first frame update void Start() { //相关参数 #region Type Dynamic 动态刚体 //Dynamic 动态刚体 //如 阅读全文
posted @ 2025-03-28 10:39 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class L11 : MonoBehaviour { // Start is called before the first frame update void Start() { //需要在SpriteRenderer中开启Mask Interaction选项 //相关参数 //A 阅读全文
posted @ 2025-03-28 09:23 cannedmint 阅读(15) 评论(0) 推荐(0)