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

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

461. 求救 Laya2.0下的Particle2D问题 [ 70%]

...': play = false; break; } if (play) { frame.rotation=frameRotation; sprite.addChild(frame); frame.pos(frameX, frameY); frame.emitter.start(); frame.play(); } else { sprite.removeChildren(); } })); } else { return; } } 2019-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

462. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 70%]

...       // sp3.pos(Laya.stage.width/2,0);         Laya.stage.addChild(sp3);         Laya.timer.frameLoop(2,null,function()             {                 sp3.rotation = sp3.rotation+10;             }         ); 2019-11-12 0 0 分...

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

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

...             apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }        ...

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

464. 给模型动态添加脚本报错 [ 70%]

...el/hanbao.lh");                 goldNode = this.scene_3d.addChild(sp);                 goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5));  ...

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

465. 1.7.8版本Sprite3D.load问题 [ 70%]

...的子节点。 *@param url */ __proto.loadHierarchy=function(url){ this.addChild(laya.d3.core.Sprite3D.load(url)); } 这个函数也是会出问题的 2017-08-09 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 请使用最新版引擎,如果还有问题,留下简单复现示例 2017-08...

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

466. timer无法执行 [ 70%]

...D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D...

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

467. Hbox Vbox 创建的数量多了后不是按创建的顺序显示 [ 70%]

...置下x方向的值,VBox同理: var hbox:HBox=new HBox(); Laya.stage.addChild(hbox); for(var i:int=0;i<20;i++) { var label:Label=new Label(); label.text='label:'+i; label.y=i*10; label.x=i*20; hbox.addChild(label); } 懒懒 • 2017-06-21 10:29 @cuixueying:建议能按添加的顺序排序,...

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

468. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 70%]

...atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var image:Im...

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

469. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 70%]

...s.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入...

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

470. 龙骨skeleton鼠标点击区域的设置 [ 70%]

... mArmature = mFactory.buildArmature(1); mArmature.play(0,true); Laya.stage.addChild(mArmature); mArmature.pos(300,600); var rect:Rectangle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同...

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