大约有 703 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0097 秒)
Laya_社区(290) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(9) Laya2.0_示例(4)
...UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后初始化list数据 listP.add.on(Event.CLICK,this,onAddClick);//点击添加按钮 listP.remove.on(Event.CLICK,this,onRemoveClick);//点击删除按钮 } private function onAdd():void { //...
来源: Laya_社区 发布时间: 20170313
...async testWait10s() { return new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.log("10s后") resolve() }) }) } 如果有什么问题,欢迎大家一起来分享感恩。 附件 : --> regenerator.runtime_.zip 2020-07-05 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20200705
... = egret.WebSocket.TYPE_BINARY; this.socket.on(Laya.Event.OPEN, this, this.onConnect); this.socket.on(Laya.Event.CLOSE, this, this.onClose); this.socket.on(Laya.Event.ERROR, this, this.onIOError); this.socket.on(Laya.Event.MESSAGE, this, this.onMessage); this.socket.connect(host,port); } public on(e...
来源: Laya_社区 发布时间: 20180119
...pengl报错导致app重启 打包app运行一段时间,发现重新调用oncreate,看log发现opengl报错。 log如下: 2018-11-23 17:28:52.456 1657-1657/com.android.bluetooth E/BluetoothMapService: Unexpected error! 2018-11-23 17:28:52.459 10354-10354/com.xzgame.rainbow E/LayaBox: >>&g...
来源: Laya_社区 发布时间: 20181123
...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform ...
来源: Laya3.0_api 发布时间: 20231115
...这个回调方法,那么就需要对`Laya.Hanlder.create()`方法中的`once`参数设置为`false`。或者用`new Laya.Handler()`的方式创建。 例如,我们需要在游戏开始界面中加载资源,需要对加载资源的进度进行显示,下面的编码为就是错误的。 1. `L...
来源: Laya2.0_文档 发布时间: 20210715
...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform ...
来源: Laya3.0_api 发布时间: 20231115
...这个回调方法,那么就需要对`Laya.Hanlder.create()`方法中的`once`参数设置为`false`。或者用`new Laya.Handler()`的方式创建。 例如,我们需要在游戏开始界面中加载资源,需要对加载资源的进度进行显示,下面的编码为就是错误的。 1. `L...
来源: Laya2.0_文档 发布时间: 20210715
...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform ...
来源: Laya3.0_api 发布时间: 20231115
...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform ...
来源: Laya3.0_api 发布时间: 20231115