大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0069 秒)
...例,但发觉Main不存在的。 我分别在两个文件里加上了console.log("Main"), console.log("game"),发现game.js是执行比Main.js早的,所以出现Main不存在的错误 2018-06-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180602
...ate onAssetLoaded(): void { // 使用texture console.log("加载结束"); } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onError(err: string):...
来源: Laya_社区 发布时间: 20240705
...谢谢? const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => { console.log('scene 2', scene.active, scene.activeInHierarchy); }); 日...
来源: Laya_社区 发布时间: 20190422
...); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } function onPlaySound(e) { console.log("播放音效"); SoundManager.playSound("../../res/sounds/btn.mp3", 1,...
来源: Laya_社区 发布时间: 20170527
... let getres = Laya.loader.getRes(item) console.log('getres',getres) //这个返回undefined })) 附件 : --> testLaya3d.zip 2021-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20210604
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 ...
来源: Laya_社区 发布时间: 20190521
... 0, loginUI.bbbar.height) Game.timer.loop("progress", this, function() { //console.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI.bbbar.viewport.width + 0.2 //console.log("loginUI.bbbar.viewport.width = ", loginUI.bbbar.viewport.width); }, 1000, 100); 2017-09-...
来源: Laya_社区 发布时间: 20170913
...e); function _OnComplete() { var bounds = ani.getGraphicBounds(); console.log(bounds.width); console.log(bounds.height); } 这样的话获取动画宽高 还是只会取到第一帧宽高 并没有办法取到毎帧的宽高 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170704
...,newdir2) //结果不与向量dir2重合 console.log(dir2); console.log(newdir1); console.log(newdir2); } // 向量夹角 public Angle(ma, mb) { var v1 = (ma.x * mb.x) + (ma.y * mb.y) + (ma.z * ...
来源: Laya_社区 发布时间: 20191230
... i++) { var pair = pairs[i]; console.debug("pairID"+pair.id); idArr.push(pair.id); } 2017-04-20 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 keiy 相关问题 ...
来源: Laya_社区 发布时间: 20170420