- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 The system is running out of memory. Please close applications to free memory
The system is running out of memory. Please close applications to free memory or free up space on the partition where the pagefile is located.重启电脑解决
2021-11-26 13:50:08
1743
原创 Unity显示帧率代码
新建一个FPSDisplay的脚本,把下面的代码粘贴进去,或者这里下载。然后把脚本挂载场景中任意物体上。using UnityEngine;using System.Collections; public class FPSDisplay : MonoBehaviour{ float deltaTime = 0.0f; void Update() { deltaTime += (Time.unscaledDeltaTime - deltaTime) * 0.1f; } voi
2021-08-13 14:58:39
1010
原创 Unity里如何让物体的轴对准某一个物体(方向)
实现方法很简单,直接对物体的transform设置即可。我们可以看到:模型的z轴(蓝色)对应正方向:transform.up模型的y轴(蓝色)对应上方向:transform.forward模型的x轴(红色)对应右方向:transform.right如果我们想让模型的头顶对准白色方块 public Transform target; void Update() { transform.up = target.position-transform.posi
2021-08-11 08:24:40
5009
3
原创 利用Netlify/Vercel和Digitalpress搭建免费Ghost静态博客
第一步先去https://www.digitalpress.blog/申请一个免费的Ghost博客。当然你可以用自己的主机,或者digitalocean免费的学生包。只要是Ghost就可以。第二步注册Netlify或者Vercel(两个都可以,自己挑选,我自己测试Vercel更快些),登录你的GitHub打开https://github.com/styxlab/next-cms-ghost(更多的模板去https://jamstackthemes.dev/查看)下滑到这个地方
2021-08-07 08:30:15
972
原创 Unity创建渐变背景
介绍:开发小游戏的时候,对于场景的要求并不是很大,但如果一种颜色又显得过于单调。这时我们就可以用渐变背景。例如:教程:1.首先我们把摄像机的Clear Flags设置为Solid Color,然后把background的颜色调成自己喜欢的颜色。如果是URP,在摄像机的Environment里设置。2.将图片(最下面链接)的Texture Type设置为Sprite,然后拖入场景中。会自动生成一个Sprite Renderer的组件3.调整组件的位置,旋转角度、大...
2021-08-06 19:13:44
1628
原创 Unity平滑着色方法
点击需要平滑着色的模型,将Normal选为Caculate.然后调整Smoothing Angle。度数越大表面越光滑。这样我们就可以将一些lowpoly风格的模型调整的更好看。
2021-08-04 17:33:39
1327
原创 Blender导出到Unity里,让center与pivot为同一点
在Blender中选中模型,右击-设置原点-原点->几何中心(选择边界框中心)这时导出到Unity里,Pivot和center即为一点。
2021-08-04 17:31:13
777
原创 Invalid SWIFT_VERSION: Could not parse version component from: ‘0 5‘
1.选择UnityFramework2.选择Build Settings选项3.将Swift版本从Swift 5 改为Swift 5(没变化,就是点两下)
2021-08-04 17:28:29
490
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人