Unity3D开发随手笔记
来源:互联网 发布:mymps seo伪静态 编辑:程序博客网 时间:2024/06/05 16:17
Pivot和Center区别 坐标指示轴的作用
http://316studio.blog.163.com/blog/static/126773529200982525014643/
Time.frameCount
从一开始到现在累计的总帧数
Animation Controllers Tutorials
http://www.raywenderlich.com/66523/unity-2d-tutorial-animation-controllers
Resources与StreamingAssets文件夹的区别
http://www.blogbus.com/flbh-logs/251368633.html
Unity3D研究院之手游开发中所有特殊的文件夹
获取某个Shader里的参数值
Material.GetFloat
怎么让一个Plane刚好覆盖满摄像头的范围
How to make a plane fill the field of view?
1. using UnityEngine; 2. public class FillScreen:MonoBehaviour 3. { 4. void Update() 5. { 6. Camera cam = Camera.main; 7. float pos = (cam.nearClipPlane + 0.01f); 8. transform.position = cam.transform.position + cam.transform.forward * pos; 9. transform.LookAt (cam.transform); 10. transform.Rotate (90.0f, 0.0f, 0.0f); 11. float h = (Mathf.Tan(cam.fov*Mathf.Deg2Rad*0.5f)*pos*2f) /10.0f; 12. transform.localScale = new Vector3(h*cam.aspect,1.0f, h); 13. } 14. }
其中,可以修改0.01的值,它表示Plane距离摄像机有多远。
Render Texture
创建一个Texture,这个Texture的内容是一个Camera看到的实时画面,然后这个Texture可以贴在其它物体上。有点像现实中的摄像头把拍摄到的画面在显示器上显示出来。
http://docs.unity3d.com/Manual/class-RenderTexture.html
0 0
- Unity3D开发随手笔记
- iOS开发随手笔记
- iOS开发随手笔记
- Android---NDK开发随手笔记
- 拾荒者开发笔记(随手)
- android 开发邮箱随手笔记(1)
- unity3d随手记1
- Unity3D 随手记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- 随手笔记
- poj 3468 A Simple Problem with Integers
- ubuntu install NVIDIA driver(Common methods, include how to exit X service)
- 九度oj 1048
- devstack安装报错解决方法:Failure creating NET_ID for xxxxx (ml2+ovs网络模式)
- The high signification of the modified poplar plywood
- Unity3D开发随手笔记
- 递归的应用-组合数求解
- Housewife Wind - POJ 2763 树链刨分
- node Express 创建一个web应用
- 卡尔曼滤波
- iOS部分-UI基础控件 - 01天 入门 第01课 计算机的界面搭建
- 【重庆淘宝代运营】淘宝类目不容小看 文章大了去
- IO模型
- 剑指offer 算法(链表 树)