大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.proper...
来源: Laya_社区 发布时间: 20180530
...,你可以采用new Laya.Handler的方式,也可以采用Laya.Handler.create(this,this.回调,null,false); 最后一个参数设置成false的意思就是用一次不回收,一直存在。感觉你Handler出问题应该是这个原因导致的。 2021-07-01 0 1 分享 微博 QZONE 微信 156**...
来源: Laya_社区 发布时间: 20210701
...png", type:Laya.Loader.IMAGE}, ], Laya.Handler.create(this, this.onLoaded)); 调用这个方法后,头条游戏报错,二进制文件Bag.xml加载失败,微信是好的,经过逐步断点找到问题的位置 laya.wxmini.js MiniFileMgr.fs.readFile这...
来源: Laya_社区 发布时间: 20190725
...roxy.as setRoleCall,但是回调回来执行getRolesBack的时候,loadCreateRole()报错:this.loadCreateRole is not a function。 回调函数里的函数执行不了吗?求解决办法。//Main.as private function loadRoles():void { SocketProxy.instance.setRoleCall(getRolesBack); } ...
来源: Laya_社区 发布时间: 20170622
...s/samplegame.proto", ]; Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT); 打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样的错 GET http://xxxxxxxx.com/newgame/pr ....
来源: Laya_社区 发布时间: 20180319
...cccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { fu...
来源: Laya_社区 发布时间: 20180129
...效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Particle3D); ret.Init(path); return ret; } //粒子特效初始化 private Init(file_path:string): void { if (this...
来源: Laya3.0_文档 发布时间: 20251010
...效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Particle3D); ret.Init(path); return ret; } //粒子特效初始化 private Init(file_path:string): void { if (this...
来源: Laya3.0_文档 发布时间: 20250104
... "#232628"; Laya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseB...
来源: Laya2.0_示例 发布时间: 20251209
...用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 问题状态 最新活动: 2017-12-02 11:13 浏览: 953 关注: 3 人
来源: Laya_社区 发布时间: 20171201