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

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

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

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

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

134. 更新到1.7.6beta之后,HBox有bug [ 49%]

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

135. LayaAir中怎么使用node.js 的 socket.io [ 49%]

...道是否正确,现在出现 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

136. Animation 使用疑问 [ 49%]

...      });   播放时大概 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

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

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

138. 简单粒子效果,发布成单机版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

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

140. 使用方向键 控制精灵在格子中移动 [ 47%]

... Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e.keyCode){ this.keyList.splice(i,1); break; } } } onkeydown(e){ if(this.keyList.indexOf(e.keyCode)<0){ this.keyList.push(e.keyCode); } } loop(){ if(this.sp.x!=...

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