大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0125 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...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
...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
... 虚世繁华 赞同来自: 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
...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
...同样的问题,t.addReference报错,改了laya.core.js之后又报了this.bitmap._getSource() is not a function,改了getsource之后不报错了,但是开放域的东西都没绘制出来,game.json里面设置了开放域的,并且使用laya微信开放域组件能够正常显示,使用2...
来源: Laya_社区 发布时间: 20181025
...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
...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
...); 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
...正常显示 调试的时候发现,laya.spine.js文件的 _parse方法中this.offsetX和this.offsetY的值为空 附件 : --> 2025-08-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 LayaAir小牛 赞同来...
来源: Laya_社区 发布时间: 20250825
...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