摘要:
效果图:(贴图类似于泥石流) 代码: 注意: 内置方法 _Time 是个4维向量,跟Unity3D中的deltaTime(这是个一维的,数值)不同。 float4 _Time : Time (t/20, t, t*2, t*3), use to animate things inside the s 阅读全文
摘要:
如果你需要发布unity时想要使用自己设置的分辨率仅需要一下几个步骤: 打开Build Setting->PlayerSetting->Resolution and Presentation->取消勾选Default is full sceen选项并设置你自己设置的分辨率,选择Display Res 阅读全文
摘要:
Unity初探之黑暗之光(1) 1.镜头拉近 1 public float speed=10f;//镜头的移动速度 2 public int endZ = -20;//镜头的结束位置 3 4 // Update is called once per frame 5 void Update () { 阅读全文