摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class FollowCamera : MonoBehaviour { //主摄像 阅读全文
posted @ 2021-12-20 08:48 Excel2016 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.扫描所有场景,保存并添加到Build Settings中 using System.Collections; using System.Collections.Generic; using System.IO; using UnityEditor; using UnityEngine; usin 阅读全文
posted @ 2021-12-09 12:13 Excel2016 阅读(501) 评论(0) 推荐(0) 编辑
摘要: // Unity中反射遍历命名空间的两种方法 // 1. foreach (Type currType in GetType().Assembly.GetTypes()) { Debug.Log(currType); Debug.Log(currType.Namespace); } // 2. As 阅读全文
posted @ 2021-11-16 15:58 Excel2016 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #define DEBUG using System.Diagnostics; namespace Attribute { using System; class Program { static void Main(string[] args) { Console.WriteLine("Hello 阅读全文
posted @ 2021-11-16 15:50 Excel2016 阅读(105) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Linq; using System.Collections.Generic; namespace Linq { class Program { static void Main(string[] args) { // BasicConcept( 阅读全文
posted @ 2021-11-16 15:47 Excel2016 阅读(100) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using Object = UnityEngine.Obje 阅读全文
posted @ 2021-11-09 16:24 Excel2016 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 使用Unity发布WebGL项目免不了要与Js进行通信,所以整理下相关知识。 官方文档地址 一 Unity调用Js方法 1.弃用的方法 (1)在发布的WebGL项目的index.html添加Exit函数: function Exit() { alert("UnityToWeb") } (2)如果想在 阅读全文
posted @ 2021-09-18 17:23 Excel2016 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: 1 设置 Git 合并策略 由于 Git 默认对文本文件会进行合并,但是由于 Unity 生成的文本文件逻辑意义上并不是文本,而是二进制数据,所以我们需要让 Git 在合并时不进行文本合并。 设置自动生成的文本文件为不合并策略 .gitattributes *.anim merge=binary * 阅读全文
posted @ 2021-09-16 12:56 Excel2016 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 摄像机跟随目标,鼠标滑轮可以调整距离 InputController.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class InputController : Mo 阅读全文
posted @ 2021-09-14 15:22 Excel2016 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1.在人模这里点提取纹理Materials,分别提取Textures和Materials,然后新建一个文件夹保存,会弹出一个窗口,点Fix的那个,然后就有了 2.把Location改为 Use External Materials(Legacy),可以把Naming 改为Model Name + M 阅读全文
posted @ 2021-09-14 00:40 Excel2016 阅读(2225) 评论(0) 推荐(0) 编辑