• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)

151. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 73%]

...; 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

152. laya.d3.core.particleShuriKen.module.shape.ConeShape [ 73%]

...e,3为VolumeShell。ConeShape enable : Boolean是否启用。BaseShape  length : Number椎体长度。ConeShape  radius : Number发射器半径。ConeShape randomDirection : Boolean随机方向。BaseShapePublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined...

来源: laya_api 发布时间: 20170929

153. laya.d3.core.particleShuriKen.module.shape.ConeShape [ 73%]

...e,3为VolumeShell。ConeShape enable : Boolean是否启用。BaseShape  length : Number椎体长度。ConeShape  radius : Number发射器半径。ConeShape randomDirection : Boolean随机方向。BaseShapePublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined...

来源: Laya2.0_api 发布时间: 20190513

154. 保存数据的数组在回调的时候变为undifine [ 73%]

...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

155. 骨骼动画-换装 [ 73%]

...p(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } completeHandler() { this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getA...

来源: Laya2.0_示例 发布时间: 20251209

156. htmlCanvas 像素级操作 [ 73%]

... = 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

157. 请大家帮助优化一下这个抛物线的代码 [ 73%]

...p(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.points[this.i].x; this.ball.y = this.points[this.i].y; this.i++; } } } private onClick():void{ // //角度归位 // this.angle = Math.PI; // //小球归位 th...

来源: Laya_社区 发布时间: 20171108

158. 分享:List相关(Item增删功能) [ 72%]

...引不再可索引范围,则终止该函数 if(index<0||index>arr.length)return; var data:Object=arr[index];//获取当前渲染条目的数据 var clip:Clip=cell.getChildByName("clip") as Clip;//获取当前渲染条目的clip组件 var check:CheckBox=cell.getChildByName("check") as CheckBo...

来源: Laya_社区 发布时间: 20170313

159. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 72%]

...{ 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

160. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 72%]

...{ 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