[LayaAir3]getComponent()使用有误,报错:Right-hand side of 'instanceof' is not an object

const rigidBody:Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) || Assert.ComponentNotNull;
fd27fda5efa39f6b81a7cd50825e02d.png
已邀请:

LayaAir大为

赞同来自:

您好,您需要在 项目设置—引擎模块 中勾选 laya.physics2D 选项。

要回复问题请先

商务合作
商务合作