- 最后登录
- 2017-5-15
- 注册时间
- 2012-3-1
- 阅读权限
- 90
- 积分
- 32973
  
- 纳金币
- 32806
- 精华
- 12
|
个人无法理解这个错误啊……求大神指导~~~~
出现错误:
error CS0165: Use of unassigned local variable `hit'
error CS0103: The name `point' does not exist in the current context(可是我那几行没有出现过 point ……)
可是我那几行没有出现过 point ……
那两行的代码:
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;(提示出错的那一行)
hit 不是 RaycastHit 结构体的对象吗?
全部的代码是我按照雨松MOMO的一个实例做的,应该没有问题的……
http://unity3d.9ria.com/?p=1359
|
|