Unity使用Camera.main ViewportToWorldPoint()报错解决

报错信息:NullReferenceException: Object reference not set to an instance of an object.即未将对象引用到对象实例。 报错原因:没有将场景内的Camera的Tag设置为主摄像机。 3、解决方法:
相关文章
相关标签/搜索