大约有 513 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0074 秒)
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里介绍一下printProgress打印的内容,在小游戏调试器平台打我们导出的项目后,连接vivo官网提供的调试地址会打印如下日志: ...
来源: Laya3.0_文档 发布时间: 20251010
... laya中js 调到 java 那边的方法 是在主线程吗 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 如何确定自己是在Native环境中? worker.js的如何正确使用?所有资源都加载2遍,第一遍是在work.js所在的目录下,第二遍正常...
来源: Laya_社区 发布时间: 20170401
...e(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载完成"); }scence1.json { "height":25, "infinite":false, "layers":[ { "data":[7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 1, 1, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
来源: Laya_社区 发布时间: 20180326
...同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,很好,这个按钮正常来讲,会挡住下...
来源: Laya_社区 发布时间: 20180529
... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script = Laya.Browser.document.createElement("script");`创建一个script...
来源: Laya2.0_文档 发布时间: 20210714
...); // 程序入口 class GameMain { constructor() { // Laya.init(600,400); console.log("start"); var exportCls = new t.TestExportCls(); exportCls.callFunc(); } } new GameMain(); } http://requirejs.org/docs/errors.html#mismatch at makeError (file:///E:/laya/TestImport/bin/node_modules/requirejs/requi...
来源: Laya_社区 发布时间: 20171116
...tring): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面...
来源: Laya3.0_文档 发布时间: 20251010
...tring): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面...
来源: Laya3.0_文档 发布时间: 20250104
...lass() export class MsgRT extends MsgRTBase { onOpened(param: any): void { console.log(param.text); } } 这样,点击Scene场景中的Button,就会打印日志“点击成功!”,效果如动图2-3所示: (动图2-3) 2.3 关闭场景 1,关闭指定的场景 /** * 根据地址,关...
来源: Laya3.0_文档 发布时间: 20251010
... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script:any = Laya.Browser.document.createElement("script");`创建一个scri...
来源: Laya2.0_文档 发布时间: 20210715