大约有 278 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(262) Laya3.0_文档(6) Laya3.0_api(3) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya2.0_示例(1) Laya2.0_api(1)
...个回复 岁寒心 赞同来自: 发现了,不是加载不了,是Laya.loader.load()这个返回时,还没有加载成功。。。所以在他的回调中,不能播放 2020-04-20 0 1 分享 微博 QZONE 微信 176*****020 赞同来自: 解决了没 2020-07-11 0 0 分享 微博 QZONE 微信 L...
来源: Laya_社区 发布时间: 20200420
....load("res/room.lh");//方法二:预加载,创建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("r...
来源: Laya_社区 发布时间: 20180817
...yaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 调用原生js 改造原生调用 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内...
来源: Laya_社区 发布时间: 20170920
...CreateImage中onerror中做了处理的。但是wxMini环境我们却用的Loader中的onCreateImage onerror没做任何处理。 var onerror = function () { clear(); delete MiniFileMgr.fakeObj[sourceUrl]; ...
来源: Laya_社区 发布时间: 20200427
...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...
来源: Laya_社区 发布时间: 20180613
... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...
来源: Laya_社区 发布时间: 20180808
...TestA这个类还有没有被定义,因为装载类的地方在在Laya.loader.load之后。 目前要想正确运行只有把199的代码删除,并添加到Laya.loader.load完成事件之后 有没有什么方式可以让编译器不插入 199行的描述代码,交给用户自己去手...
来源: Laya_社区 发布时间: 20170703
...创建vivo快游戏项目 index.js:829 data stderr: internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vivo-minigame\cli\bin\mg' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Mo...
来源: Laya_社区 发布时间: 20200817
..."; var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.ad...
来源: Laya_社区 发布时间: 20180808
..._XS 赞同来自: 你指的是2d的还是3d的加载,2d的加载就是用loader的load方法,3d的就是用Sprite3D的load方法 2017-12-31 0 0 分享 微博 QZONE 微信 ok10000 赞同来自: 怎么没有像egret那样介绍资源加载的教程? 2017-12-31 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20171230