摘要: Clear Flags skybox 天空盒渲染 - 3D游戏 solid color 纯色填充 - 2D游戏 Depth only - 只画该层,背景透明 Don't Clear - 不移除,覆盖渲染 Culling Mask 选择性渲染部分层级 可以只渲染指定对应层级的对象 Projection 阅读全文
posted @ 2025-03-16 20:33 cannedmint 阅读(13) 评论(0) 推荐(0)
摘要: public class Lesson12 : MonoBehaviour { // Start is called before the first frame update void Start() { #region 静态属性 //获取屏幕分辨率,获取显示器的分辨率 Resolution r 阅读全文
posted @ 2025-03-16 17:54 cannedmint 阅读(12) 评论(0) 推荐(0)
摘要: public class Lesson11 : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Upda 阅读全文
posted @ 2025-03-16 17:25 cannedmint 阅读(22) 评论(0) 推荐(0)
摘要: public class Lesson10 : MonoBehaviour { // Start is called before the first frame update void Start() { #region 世界坐标转本地坐标 //世界坐标系的点转换为本地坐标系的点 //受物体本身缩 阅读全文
posted @ 2025-03-16 16:01 cannedmint 阅读(10) 评论(0) 推荐(0)
摘要: public class Lesson9 : MonoBehaviour { public Transform son; // Start is called before the first frame update void Start() { #region 获取和设置父对象 //获取父对象 阅读全文
posted @ 2025-03-16 10:40 cannedmint 阅读(41) 评论(0) 推荐(0)
摘要: public class Lesson8 : MonoBehaviour { public Transform lookAtObj; // Start is called before the first frame update void Start() { #region 缩放 //相对世界坐标 阅读全文
posted @ 2025-03-16 09:54 cannedmint 阅读(6) 评论(0) 推荐(0)