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

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

681. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 50%]

...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...

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

682. 关于Panel的双指响应问题 [ 50%]

...ge.bgColor = "#232628"; setup(); })(); function setup() {         Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){     var dialog = new Image("../../res/ui/dialog (3).png");     dialog.scaleX = 2;     dialog.scaleY = 2;     var panel = new Panel();  ...

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

683. 如何通过代码控制prefab上面的时间轴动画animation? [ 50%]

...后就跟普通scene一样使用了。 ... let prefab:Laya.Prefab = Laya.loader.getRes(".../xxx"); let soldier = prefab.create() as Laya.Box; // 为了代码提示,转成实际的类型 soldier["show"].play(); 在TS下面soldier如果不是any的话,直接使用soldier.show会编译报错。 可...

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

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

... 提交 3 个回复 18857358473 赞同来自: var tx3:Laya.Texture = Laya.loader.getRes("test2.png");         var sp3:Laya.Sprite = new Laya.Sprite();         sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582);          sp3.pivot(315/2,315/2);//锚点使用实...

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

685. 求救 Laya2.0下的Particle2D问题 [ 50%]

...键松开时isFrame=false,按下播放尾焰特效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotation; //问...

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

686. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 50%]

...e { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya.Handler.create(this, this.OnLoadDataCb)); } protected OnDownloadFileInWxOk(args:any, result:any, data:any):void { console.log("OnDownloadFileInWxOk"); console.log("" + result + ", data: " + data); if (re...

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

687. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 50%]

...).png");         }          let nt = Date.now();         Laya.loader.load(             loadList,             Laya.Handler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now(...

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

688. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 50%]

...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...

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

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

...ivate i:number = 0; constructor() { Laya.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ba...

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

690. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 50%]

...            Laya.init(1136, 640,WebGL);             Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void        ...

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