笔记
流星非逝
一只走上编程之路的小白。
展开
-
Unity常用代码功能总结
一、代码模版1.单例模式代码//单例模式 static Resource _instance; void Awake() { _instance = this; } public static Resource Instance { get { // 不需要再检查变量是...原创 2018-09-18 10:28:30 · 835 阅读 · 0 评论 -
Unity常用设计模式整理
1.单例模式概念很简单,保证一个类仅有一个实例,并提供一个访问它的全局访问点。//单例模式 static GameController _instance; void Awake() { _instance = this; } public static GameController Instance { ...转载 2018-10-08 20:45:37 · 2205 阅读 · 0 评论 -
UE4小功能点总结
一、VR模式1.VR模式下相机的高度问题使用Steam定位VR头盔时将VR放到脚的位置,对应高度为0;在虚幻4中将相机的高度设置为-90(实际应该为-88即碰撞体高度,就是让相机位置到最低端),这样的话在场景中视角和现实感官相同。但平时测试时,不使用VR设备,这是一般将摄像机的视角高度设置为90.2.VR模式下优化二、时间流程与控制1.时间轴与Spline结合(路径)...原创 2018-11-10 09:30:32 · 1492 阅读 · 0 评论 -
Untiy3D常见问题整理
1.Unity导致C盘膨胀问题解决:Edit - Preference - GI Cache,选中 Custom Cache Location,点击 Clean Cache清空一次(,切换到别的盘)。2.Unity打包问题:2.1点击Player settings修改Other Settings下的 Bundle Identifier 中的com.Company.ProductName为自...原创 2018-10-17 17:58:07 · 198 阅读 · 0 评论