![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
文章平均质量分 59
鸿蒙老道
这个作者很懒,什么都没留下…
展开
-
Unity 获得Transparent材质的深度纹理
最近 做的项目中 需要获得海水的深度信息 正常获得信息的步骤是设置camera.depthTextureMode = DepthTextureMode.Depth; 然后在shader中声明_CameraDepthTexture 通过half rDepth = SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, i.uv);rDepth = Linear01原创 2017-04-20 14:40:16 · 2182 阅读 · 0 评论 -
unity 代码修改particle system shape
修改particle system shape属性 代码如下 ParticleSystem.ShapeModule shape = particle.shape; shape.radius = radius;原创 2017-05-03 10:30:43 · 4116 阅读 · 4 评论 -
unity5 资源提取工具
推荐使用unitystudio perfare版本的 星数最多的版本已经不更新了 另外使用disunity0.5已经不能提取unity5.5的apk了地址https://github.com/Perfare/UnityStudio原创 2017-05-15 11:24:34 · 727 阅读 · 0 评论 -
shader移植到 android 失败问题 (遇到过的)
一Shader.Find在pc上好用 在android失败 原因:官方说明https://docs.unity3d.com/ScriptReference/Shader.Find.html场景中加入没有材质引用这个shader的话 默认这个shader是不会打包到程序中 解决方法有两种1.在project-graphics中 将材质添加到AlwaysIncluded Shaders中...原创 2017-04-25 10:27:50 · 3734 阅读 · 0 评论 -
unity 拓展自己的UnityEvent
新建一个类 集成子UnityEvent 其中xx可以设置为你想要使用的类型具体使用的时候 通过调用event.invoke(xx, xx)就可以执行了具体代码[System.Serializable]public class MyEvent : UnityEvent { } MyEvent longPress = new MyEvent();l原创 2018-02-07 16:44:23 · 851 阅读 · 0 评论 -
unity tolua 学习笔记
toLua学习笔记tolua版本1.0.71.生成wrap文件 创建自定义的类MyTestObject 在Editor/Custom/CustomSettings 的customTypeList 中添加自定义的类型 _GT(typeof(QualitySettings)), _GT(typeof(RenderSettings)), ...原创 2018-02-08 13:51:04 · 980 阅读 · 0 评论