大约有 6 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...e.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floo...
来源: Laya3.0_文档 发布时间: 20251010
... //接口 removeTexture(textureId: number, largeTextureIndex: number = -1, event: boolean = true): boolean 参数说明: textureId:纹理的 ID (可从 texture.bitmap.id 获取) largeTextureIndex:指定从哪个大纹理移除(-1 表示从所有大纹理移除) event:是否触发 Event.CHANG...
来源: Laya3.0_文档 发布时间: 20260131
... aWidget.setPage("c1", 1); 控制器改变时有通知事件: c1.on(Laya.Event.CHANGED, ()=> { console.log(c1.selectedIndex); }); Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 18:58:09 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
....drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); (图3-1) 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更新不连贯。设置Stage.frameRate为Stage.FRA...
来源: Laya3.0_文档 发布时间: 20251010
..._Simulation)9.2 Physics Update Node(T_Physics_UpdateNode)9.3 Physics Event(T_PhysicsEvent)9.4 Physics Event Count(C_PhysicsEventCount)9.5 Physics Collider(T_PhysicsCollider)9.6 Physics Trigger(T_PhysicsTrigger)9.7 Physics Collider Enter(T_PhysicsColliderEnter)9.8 Physics Co...
来源: Laya3.0_文档 发布时间: 20260128
...ions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher.watch({}); //inspect可以多次调用,将...
来源: Laya3.0_文档 发布时间: 20251010