大约有 665 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0050 秒)
Laya_社区(608) Laya2.0_文档(19) Laya3.0_文档(13) Laya2.0_示例(8) Laya_示例(8) Laya3.0_api(5) laya_api(2) Laya2.0_api(2)
OPPO主包无法从分包中拿资源 Laya.loader.load(分包路径, Laya.Handler.create(null, function (obj: any) {完全走不进来 })); 2020-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20200824
...:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Laya.loader.create 进度回调函数执行两次 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? Laya.Handler.create 回调 问题状态 最新活动: 2018-04-18 14:32 浏览:...
来源: Laya_社区 发布时间: 20180413
...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...
来源: Laya3.0_文档 发布时间: 20251010
...dres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })(); 附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20171123
...valid url "res/protobuf/Login.proto" 具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________") var ProtoBuf = Browser.window.protobuf; // Laya.init(550, 400); ProtoBuf.load("res/proto...
来源: Laya_社区 发布时间: 20180704
...是加载sk完成前,就调用动画导致 因此,在最开始用Laya.loader.Load(["drgon.sk"]......)这样的方式预加载 !!!结果,预加载时报错,就是这里: laya.core.js的7430行 if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,...
来源: Laya_社区 发布时间: 20180622
... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } } Main.as packa...
来源: Laya_社区 发布时间: 20170522
...。 然後把你要的動畫圖集塞入 Array 陣列中。 最後用 Laya.loader.load 去加載 Array 陣列中的內容。 2017-08-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 styleflying 相关问题 两个对象new了一个相...
来源: Laya_社区 发布时间: 20170814
...人 赞同来自: clearRes之后再次使用的话需要重新使用Laya.loader.load来加载。你也可以看下clearTextureRes是否能满足你的需求,具体使用文档:https://ldc.layabox.com/doc/?nav=zh-as-3-2-7 2018-03-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20180312
... 微博 QZONE 微信 旋风草 赞同来自: 明白了,需要先用Laya.loader.load先加载资源。提前放入场景中,编译后会自动加载资源,所以才会获取到width 2019-11-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20191126