1、获取控件四个角在屏幕上的坐标
Vector3[] corners = new Vector3[4];gameObject.GetComponent().GetWorldCorners(corners);foreach(var item in corners){ Debug.Log(item);}//出来的坐标的顺序是左下、左上、右上、右下
2、移动方式总结
http://blog.csdn.net/myarrow/article/details/45846567
http://blog.csdn.net/u014269742/article/details/51206050
3、时间
4、声音
5、旋转http://blog.csdn.net/candycat1992/article/details/41254799
平移
using UnityEngine; using System.Collections; public class MoveSrcipt : MonoBehaviour { GameObject go; public float speed = 0; float y=0; Quaternion rotateTo; //四元数(旋转) void Start () { go = this.gameObject; } // Update is called once per frame void Update () { if (Input.GetKey("w")) { go.transform.Translate(Vector3.forward*Time.deltaTime*speed); //平移 } if (Input.GetKey("s")) { go.transform.Translate(Vector3.back * Time.deltaTime * speed); } if (Input.GetKey("a")) { go.transform.Translate(Vector3.left * Time.deltaTime * speed); } if (Input.GetKey("d")) { go.transform.Translate(Vector3.right * Time.deltaTime * speed); } if (Input.GetKey("q")) //利用y方向的正负和rotation 实现转向 { y = -Time.deltaTime * speed * 15; } else if (Input.GetKey("e")) { y = Time.deltaTime * speed * 15; } else y = 0; go.transform.Rotate(new Vector3(0,y,0)); go.transform.rotation = Quaternion.Slerp(go.transform.rotation, rotateTo, Time.deltaTime);//使用插值实现平滑转动 } }
6、输出
http://www.xuanyusong.com/archives/2782
7、摄像机
http://www.cnblogs.com/tonge/p/3905162.html
8、粒子系统
http://www.cnblogs.com/tonge/p/3922545.html
9、光源组件
http://www.cnblogs.com/tonge/p/3899981.html
10、GUI
http://www.cnblogs.com/tonge/p/3935065.html
11、脚本开发基础
http://www.cnblogs.com/tonge/p/3934732.html
12、导航网格自动寻路
http://www.cnblogs.com/tonge/p/3931116.html
13、常用类
http://www.cnblogs.com/tonge/p/3931116.html
14、动画
http://www.cnblogs.com/tonge/p/3927343.html
15、雾效
http://www.cnblogs.com/tonge/p/3922829.html
16、物理材质
http://www.cnblogs.com/tonge/p/3929824.html
17、碰撞体
http://www.cnblogs.com/tonge/p/3929607.html
18、刚体
http://www.cnblogs.com/tonge/p/3929559.html
19、角色控制器
http://www.cnblogs.com/tonge/p/3930693.html
20、三维软件与unity 单位比例
http://www.cnblogs.com/tonge/p/3838335.html
21、GameObject 菜单栏
http://www.cnblogs.com/tonge/p/3838072.html
22、鼠标控制角色行走和奔跑
http://www.xuanyusong.com/archives/841
23、摄像机跟随脚本
http://blog.csdn.net/dyc333236081818/article/details/8854198
24、判断物体是否在摄像机里
http://www.cnblogs.com/android-blogs/p/6116567.html
25、场景淡入淡出
http://www.cnblogs.com/android-blogs/p/6101337.html
26、unity体系基础知识大纲
http://www.cnblogs.com/android-blogs/p/6427810.html
27、RectTransform
http://www.cnblogs.com/android-blogs/p/6424971.html
28、unity常用技巧及bug
http://www.cnblogs.com/android-blogs/p/6424884.html
29、unity基础教程
http://www.cnblogs.com/android-blogs/p/6369347.html
http://www.cnblogs.com/android-blogs/p/6369271.html
30、拖拽以及鼠标事件
http://www.cnblogs.com/android-blogs/p/6344054.html
31、目标相对自身的前后左右方位的判断
http://www.cnblogs.com/android-blogs/p/6343983.html
32、GUI控件
http://www.cnblogs.com/android-blogs/p/6155745.html
33、动态创建UGUI
http://www.cnblogs.com/android-blogs/p/6148147.html
34、