[LayaAirIDE 2.0]LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’
项目换了新库2.0.1之后,切换场景报异常 Cannot read property ‘_physicsUpdateList’of null
求指导~~
__proto._onDestroy=function(){
(this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));
var physics3D=Laya3D._physics3D;
delete PhysicsComponent._physicObjectsMap[this.id];
physics3D.destroy(this._nativeColliderObject);
this._colliderShape.destroy();
_super.prototype._onDestroy.call(this);
this._nativeColliderObject=null;
this._colliderShape=null;
this._simulation=null;
(this.owner).transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._onTransformChanged);
}
求指导~~
__proto._onDestroy=function(){
(this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));
var physics3D=Laya3D._physics3D;
delete PhysicsComponent._physicObjectsMap[this.id];
physics3D.destroy(this._nativeColliderObject);
this._colliderShape.destroy();
_super.prototype._onDestroy.call(this);
this._nativeColliderObject=null;
this._colliderShape=null;
this._simulation=null;
(this.owner).transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._onTransformChanged);
}
没有找到相关结果
已邀请:
要回复问题请先登录
0 个回复