大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)
...ider:Laya.SphereColliderShape = new Laya.SphereColliderShape(0.5); //通过按钮this.castAll状态切换是采用检测全部还是检测第一个 if (this.castAll) { //采用球形碰撞器进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this...
来源: Laya3.0_文档 发布时间: 20251010
...eInspectorPanel(): InspectorPanel; } 4.2 示例 例如要动态创建一个按钮,可以用以下代码。 let button = IEditor.GUIUtils.createButton(); //它实现的功能其实和以下代码是相同的,只是更加简洁 //let button = gui.UIPackage.createWidgetSync("~/ui/basics/Button/Butt...
来源: Laya3.0_文档 发布时间: 20251010