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

大约有 141 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

121. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 51%]

...ape.x=(apesCtn._childs.length)*(stageWidth/4)             var bl:Number=texture.width/texture.height             ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl);             apesCtn.addChild(ape);         } 2016-10-23 添加评论 免费帖 --> 分...

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

122. timer无法执行 [ 50%]

...); }   public shootBall(): void{ //生成空中降落的球 //var random: number = Math.random()*24-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17...

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

123. APP打包后运行效果与调试效果不一致(sprite,child) [ 50%]

...his.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; }   这样实现 当前Sprite里面的可移动sprite元素Y轴小的永远被Y轴大的遮挡,在IDE调试没有问题,但是打包APP(单机)在安卓机器上跑,无法达到...

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

124. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 50%]

...     //设置模糊的参数          var downSampleFactor:number = 2;          var downSampleWidth:number = viewPort.width/downSampleFactor;          var downSampleheigh:number = viewPort.height/downSampleFactor;         var texSize:Laya.Vector4 =...

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

125. 更新到1.7.6beta之后,HBox有bug [ 50%]

...nLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; ca...

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

126. LayaAir中怎么使用node.js 的 socket.io [ 50%]

...道是否正确,现在出现 TypeError: Cannot create property 'path' on number '10000' at new r (file:///Users/bingbing/MahjongProject/MahjongLaya/bin/socket.io.js:1:15053) zhishaofei3 • 2017-09-22 23:31 @piaobo80:链接打不开了怎么办 还有链接吗 重发一下 zhishaofei3 • 2017-09-...

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

127. Animation 使用疑问 [ 50%]

...      });   播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void {          this.aniBody.destroyChildren();          this.aniBody.clear();         let loopPlay: boolean = true;         let key: string = actionName + "_" + Math.a...

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

128. 通过绘制纹理生成的图片,改变scale时会出现图片不绘制的情况 [ 50%]

...     Laya.stage.addChild(sp);             let _picScale:number=1;             //每点一下就缩小0.05倍             Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{                 _picScale-=0.05;                 sp.sca...

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

129. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 48%]

.../LayaUISampl ... annot read property 'start' of null this.sp.emitter.start(Number.MAX_VALUE); TypeError: Cannot read property 'start' of null     at LayaUISample.__proto.onAssetsLoaded (http://www.xxx.com/LayaUISample.max.js:440)     at EventHandler.__proto.run (http://www.xxx.com/LayaUISample.m...

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

130. 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚动一模一样。 [ 48%]

...list渲染 */ private OnRankLisLabRender(item:component.UIButton, index: number): void { item.name = index.toString(); item.onClick(this,this.OnCliickItem); } /** 点击item单个道具的时候*/ private OnCliickItem(item: component.UIButton) { let index = parseInt( item.name ); }

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