camera.ScreenToWorldPoint使用出现引用错误

使用camera.ScreenToWorldPoint出现如下错误

NullReferenceException: Object reference not set to an instance of an object
PlayerController.FixedUpdate () (at Assets/Scenes/PlayerController.cs:37)
 

没有设置主相机

camera.ScreenToWorldPoint使用出现引用错误

相关文章:

  • 2021-11-10
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-12-05
  • 2021-11-08
猜你喜欢
  • 2021-05-20
  • 2022-01-07
  • 2021-09-20
  • 2021-12-22
  • 2021-07-12
  • 2021-09-24
  • 2021-10-11
相关资源
相似解决方案