大约有 1,604 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
...行,分包内的game.js 和main.js里面有一行 "use strict";console.log("subRes loaded;");这个就行了,我这边是这样 1597917359用户 • 2021-01-20 14:47 我这个 里面有main。js 是为什么呢 1597917359用户 • 2021-01-23 16:44 您好 是需要两个js文...
来源: Laya_社区 发布时间: 20201204
...der.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (im...
来源: Laya_社区 发布时间: 20191122
...); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,c...
来源: Laya_社区 发布时间: 20180720
..."comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private parseComplete() { //从动画模板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0,...
来源: Laya_社区 发布时间: 20180905
...e; this._btnPlaySound.visible = false; console.log(this.soundMan.resume); if (this.playBoo) { this.soundMan.play(); this.playBoo = false; }else { this.sound...
来源: Laya_社区 发布时间: 20190919
...re 赞同来自: 自己研究中,好像是物理没有开启导致的, console.log(Laya3D.enbalePhysics);结果是false 问题是怎么开启物理?看源码这个enablePhysics是根据是否存在window.Physics3D而设置的。 那么问题是怎么让window.Physics3D存在呢? 文档没找...
来源: Laya_社区 发布时间: 20190321
...'>HTML文本</span>"; html += "</div>"; p.innerHTML = html; console.log(p.contextHeight) } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html"; p.y = 200; } })(); 2017-05-16 0 0 分享 微博 QZONE 微信 cuixueyin...
来源: Laya_社区 发布时间: 20170515
...Child(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```
来源: Laya2.0_文档 发布时间: 20210715
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。...
来源: Laya_社区 发布时间: 20180603
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 图片添加点击事件 有的不生效 本地调试加载本地图片都报错 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏...
来源: Laya_社区 发布时间: 20170417