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

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

2571. layaairts下 如何 让动画显示在地图上面tilemap地图 [ 66%]

...meMain{ private tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal-outside.json",viewRect,null); //...

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

2572. laya.utils.ClassUtils [ 66%]

...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getClass(className:String):*[static] 根据名字返回类对象。 ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 C...

来源: Laya2.0_api 发布时间: 20190513

2573. LayaAir2.1.0加载unity的场景必须在游戏初始化加载吗,延迟一帧都不行,不然报异常 [ 66%]

... 虚世繁华 赞同来自: constructor() { super();  Laya.timer.once(1,this,()=> { Laya.Scene3D.load('LayaScene_Main/Conventional/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene);   })); }); }   这样的加载一定包异常,不延时直接在构造...

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

2574. dialog黑色遮罩删除不了 [ 66%]

...ar isModalTmp = dialog.isModal;         // dialog.isModal && this._checkMask();         dialog.closeHandler && dialog.closeHandler.runWith(dialog.closeType);         if (dialog.autoDestroyAtClosed)dialog.destroy();         else dialog.removeSelf();       ...

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

2575. Laya2.0做排行榜时发布到微信中报错 [ 66%]

...同样的问题,t.addReference报错,改了laya.core.js之后又报了this.bitmap._getSource() is not a function,改了getsource之后不报错了,但是开放域的东西都没绘制出来,game.json里面设置了开放域的,并且使用laya微信开放域组件能够正常显示,使用2...

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

2576. laya.ui.Clip_API3.0 [ 66%]

...y 的值,用于控制 clip 对象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数。clip.total...

来源: Laya3.0_api 发布时间: 20231115

2577. 如何在laya中直接使用proto中定义的enum? [ 66%]

...rotoBuf:any = Browser.window.protobuf;     ProtoBuf.load("type.proto", this.onProtoLoaded);     ProtoBuf.load("Lobby/protobuf/client2world_protocol.proto", this.onProtoBufLoaded1); } function onProtoLoaded(err:any, root:any):void{     if (err)         throw err;     root_prot...

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

2578. [LayaAir3]Laya3.3.5 2D相机drawToRenderTexture2D不生效问题 [ 66%]

...);         let render2 = new Laya.Sprite();          let tex1 =  this.testSprite.drawToRenderTexture2D(200,200,0,0);         let tex2 =  this.testSprite2.drawToRenderTexture2D(200,200,0,0);          render1.texture = new Laya.Texture(tex1);         render2.texture = new Laya....

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

2579. [LayaAir3]layaAir3.3.1版本,spine3.7.89动画无法正常显示 [ 66%]

...正常显示 调试的时候发现,laya.spine.js文件的 _parse方法中this.offsetX和this.offsetY的值为空   附件 : --> 2025-08-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 LayaAir小牛 赞同来...

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

2580. Mac下LayaAirIDE1.7.20版本声音预加载失败,但windows下同个版本加载正常 [ 66%]

...UND}         ];         Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)); } private function onProgress(loadNum:Number):void { }   private function onComplete():void { } 附件 : --> 2018-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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