大约有 1,020 项符合查询结果, 库内数据总量为 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
...数据 list.dataSource = data; } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = laya.ui.Box; import Image = laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public stati...
来源: Laya_社区 发布时间: 20180410
...e; this._btnPlaySound.visible = false; console.log(this.soundMan.resume); if (this.playBoo) { this.soundMan.play(); this.playBoo = false; }else { this.sound...
来源: Laya_社区 发布时间: 20190919
...aya.init(1280,720); //无问题 Laya.init(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new...
来源: Laya_社区 发布时间: 20170814
...); 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
...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
..."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
....Event.MOUSE_DOWN, this, function (e) { e.stopPropagation();//阻止冒泡 console.log('@_@' + e.stageX, e.stageY); }); 另外,能分享一下,你的导弹是怎么做的吗?谢谢 2017-09-19 0 1 分享 微博 QZONE 微信 bingqimao 赞同来自: 1. 监听MouseDown事件 2. 当MouseDown的时...
来源: Laya_社区 发布时间: 20170902
...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