大约有 1,766 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
..., this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onError(err) { console.log("加载失败: " + err); } })();module laya { import Event...
来源: Laya_示例 发布时间: 20251130
...我用android studio 离线打包,为什么在logcat里打印不出js的console.log()内容?是不是需要哪里配置或导入插件? 2018-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来...
来源: Laya_社区 发布时间: 20180913
...过来的数据怎么获取 private openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ///////////////////////////////////////////////...
来源: Laya_社区 发布时间: 20180424
...wake不同的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { console.log("Game onAwake"); } //组件被启用后执行,比如节点...
来源: Laya3.0_文档 发布时间: 20251010
...(200, 0); x = t.getPixels(0,0,400,400) console.log(x) for (let i of x) { if (i > 0) { console.log(i) } } console.log(' ----- 到...
来源: Laya_社区 发布时间: 20171201
...LICK 的(以下代码来自“2D入门示例”): onEnable(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); }); //侦听物理按...
来源: Laya3.0_文档 发布时间: 20251010
...功回调,发送字符串数据 */ private onSocketOpen(e: any): void { console.log("WebSocket 已连接"); // 发送字符串示例 this.socket.send("Hello, LayaAir WebSocket!"); } /** 接收数据回调 */ private onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof ...
来源: Laya3.0_文档 发布时间: 20251010
...nt.ERROR, this, this.onError); } onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 onLoading(progress) { console.log("加载进度: " + progress); } onError(err) { console.log("加载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya...
来源: Laya2.0_示例 发布时间: 20251130
... if (!success) { console.error("OPPOSANS-R ttf 字体加载失败"); } else { console.log("OPPOSANS-R ttf 字体加载成功"); } ...
来源: Laya_社区 发布时间: 20201104
... //注册按钮响应函数 Login.prototype.onButtonLogin = function (){ console.log ('按了登录按钮') var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROG...
来源: Laya_社区 发布时间: 20180824