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

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

751. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 70%]

...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img = new Laya.Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } ```

来源: Laya2.0_文档 发布时间: 20210715

752. 问一下这个问题要怎么改啊? [ 69%]

...c.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import addPic; public class Main { private var bgImage:Image; private var bgRes:S...

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

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

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

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

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

755. 给模型动态添加脚本报错 [ 69%]

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

756. 求救 Laya2.0下的Particle2D问题 [ 69%]

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

757. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 69%]

...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img: Laya.Image = new Laya.Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } new PanelTest(); ```

来源: Laya2.0_文档 发布时间: 20210715

758. timer无法执行 [ 69%]

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

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

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

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

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