unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 17:41:45
unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.

unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.
unity3D中,这段提示是什么意思?
NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.

unity3D中,这段提示是什么意思?NullReferenceException:Object referece not set to an instance of an object.怎样解决这个问题?这是一个坦克发射炮弹的例子.
被实例的object不存在应该是,看下是不是脚本里的公共变量在unity里没赋值..

空引用,没有把炮弹的实例拖到脚本接口吧