大约有 698 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0041 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...
来源: Laya2.0_文档 发布时间: 20210715
...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.on(Laya.Event.PROGRESS, this, this.processHandler); xhr.send("res/data.data", "", "get", "text"); console.log("aa...
来源: Laya2.0_文档 发布时间: 20210715
...export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问...
来源: Laya_社区 发布时间: 20241101
...sole出,那个list中的数据也存在,但没渲染出。 http 请求 once 的 回调参数,如何传递和接收? 请问从远程网络获取的json数据,怎么保存在本地内存之中呢或本地保存? 关于zlib解压的内存占用 微信小游戏 展示关系链数据 如何...
来源: Laya_社区 发布时间: 20171214
... btn.clickHandler = Laya.Handler.create(this, this.onClickCreate) this.drawGrid(); } onClickCreate() { // ()=>{ console.log("button CreateShovel 多次点击只会执行第一次") ...
来源: Laya_社区 发布时间: 20231221
...在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready"上面加一行: this.app.commandLine.appendSwitch("ignore-gpu-blacklist"); 保存,重启IDE再试试 3、如果以上还没解决,请百度搜索,如何强制开启webgl 2019-12-06 0 0 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20191205
特效LOADED监听不到 能给具体点吗新手 ani.once(Laya.Event.LOADED,null,function(ani1){ console.log(ani1.getGraphicBounds()); }); 这样写的话监听不到 现在引擎支持下载功能吗??? 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170628
...| Frames No Frames GyroscopeProperties | Methods Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientat...
来源: Laya2.0_api 发布时间: 20190513
...to._create (http://127.0.0.1:55825/game/code.js:22320:21) at Timer.__proto.once (http://127.0.0.1:55825/game/code.js:22365:8) at MyData.__proto.catchCard ( 于是我定位到编译好的code.js, 是在Timer的这个函数中,获取$_TID时报错了 /**@private */ __proto._getHandler=function(cal...
来源: Laya_社区 发布时间: 20180520
...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...
来源: laya_api 发布时间: 20170929