大约有 141 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0036 秒)
Laya_社区(85) Laya2.0_文档(17) Laya_示例(14) Laya3.0_文档(12) Laya2.0_示例(7) Laya3.0_api(4) laya_api(1) Laya2.0_api(1)
...ks[event] || []).push(fn); } public request(route, msg, cb) { if(arguments.length === 2 && typeof msg === 'function') { cb = msg; msg = {}; } else { msg = msg || {}; } route = route || msg.route; if(!route) { return; } this.reqId++; if(this.reqId>127){ this.reqId = 1; } var reqId = this.r...
来源: Laya_社区 发布时间: 20180119
.../这上面播放没问题然后我要做个点击切换 //_outHitAllInfo.length;这个已经获取到了。射线获取的 //是不是我Event.COMPLETE写错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () { for (var i = 0; i &...
来源: Laya_社区 发布时间: 20170927
...id { let uiResArray = []; let muduleName; for (let index = 0, len = mNames.length; index < len; index++) { muduleName = mNames[index]; uiResArray.push({ url: bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName), type: Laya.Loader.ATLAS }); } Laya.loader.load(uiResArra...
来源: Laya_社区 发布时间: 20170905
...; var i = 0, len = 0; var toPlays; toPlays = this.__toPlays; len = toPlays.length; var tParams; for (i = 0; i < len; i++) { tParams = toPlays[i]; if (tParams[2]) { if (!(tParams[2]).isStopped) { this.play(tParams[0], tParams[1], tParams[2]); } else { tParams[2].audioBuffer = this.audioBuffer; } }...
来源: Laya_社区 发布时间: 20201014
...del.heros.Heros; //获取 MainModel里的武将信息 var leng:int = heros.length; var item:HeroResolveItem; var heroInfo:SHeroInfo; for (var i:int = 0; i < leng; i++) { heroInfo = heros[i]; if (_heroItemList[i] == null) { item = new HeroResolveItem(this.onSelectedHeroChange); _heroItemList[i] = ...
来源: Laya_社区 发布时间: 20170321
...vent.LOADED,this,load); } public function load(e:* = null):void{ if(assets.length > 0){ mc.load(assets.shift()); }else{ onAssetsLoaded(); } } private function onAssetsLoaded(e:*=null):void { this.event(BEFORLOADERFINISH); } } } 2016-12-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20161213
... = tex.getPixels(0,0,tex.width,tex.height); for (var i=0;i<imgData.data.length;i+=4) { imgData.data[i] = texData[i]; imgData.data[i+1] = texData[i+1]; imgData.data[i+2] = texData[i+2]; imgData.data[i+3] = texData[i+3]; } ctx.putImageData(imgData,0,0); //创建新的sprit...
来源: Laya_社区 发布时间: 20180413
...._text) password = false; var x = 0, y = 0; var end = Math.min(this._lines.length, visibleLineCount + begin) || 1; let color = this.color; let underline = this.underline; let bold = this.bold; for (var i = begin; i < end; i++) { var lines = this.typeLines[i]; var _word; if (this.align == "right")...
来源: Laya_社区 发布时间: 20180417
...{ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChil...
来源: Laya2.0_文档 发布时间: 20210715
...{ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChil...
来源: Laya2.0_文档 发布时间: 20210715