Unity踩坑

  1. unity中提供的button十分不美观,所以使用制作好的图片作为按钮,使用方法见下:
    https://jingyan.baidu.com/article/0eb457e5e5cd7603f1a9058c.html
    注意:要有EventSystem存在,否则不会触发事件

  2. 弹窗的简单实现:
    https://blog.csdn.net/caoshuangxiaodouya/article/details/46550655

  3. GameObject介绍:
    https://blog.csdn.net/weixin_41765385/article/details/80210885

  4. 把一个视野放到界面的UI上(可制作小地图或多角度视角)
    https://jingyan.baidu.com/album/93f9803f5c15aae0e56f5546.html

  5. 取消启动界面的unity动画(取消splash)(需要专业版软件)
    https://blog.csdn.net/u011704031/article/details/54016374

  6. 使用代码实例化prefabs
    https://www.cnblogs.com/posts/p/8259487.html

     GameObject instance = (GameObject)Instantiate(
     	Resources.Load("prefab"), 	//prefab 需要放在 Assets/Resources 目录下
     	transform.position, 		//机和坐标
     	transform.rotation);		//旋转角度
    
  7. unity中脚本的执行顺序
    https://blog.lujun.co/2019/07/09/unity_script_execution_order

  8. (添加于 2020-05-06)判断鼠标是否在 UI 上
    https://blog.csdn.net/weixin_41946900/article/details/88683040

posted @ 2020-03-13 19:35  臭蛋1999  阅读(114)  评论(0编辑  收藏  举报