大约有 2,984 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2430) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(65) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
使用IDE制作的动画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetl...
来源: Laya_社区 发布时间: 20190117
...问过问题,基本没人答,结果都是我自己慢慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete)); 再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.g...
来源: Laya_社区 发布时间: 20180807
...现跨源受限的问题 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. laya.core.min.js:6 [warn]Retry to load: E:/laya/layatest/release/layaweb/1.0.0/res/img/image.png index.html:1 I...
来源: Laya_社区 发布时间: 20170315
...one():* 克隆。 Avatar cloneTo(destObject:*):void 克隆。 Avatar load(url:String, complete:Handler):void[static] 加载Avatar文件。 AvatarConstructor DetailAvatar()Constructorpublic function Avatar() 创建一个 Avatar 实例。 Method Detail_cloneDatasToAnimator()method public functio...
来源: Laya2.0_api 发布时间: 20190513
...ngMaterial; //添加漫反射贴图 Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya....
来源: Laya_社区 发布时间: 20191009
纹理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却...
来源: Laya_社区 发布时间: 20180724
...在建了个res 文件夹把资料放进去 控制台显示 [warn]Retry to load: res/ziti.fnt [warn]Retry to load: res/ziti.png [error]Failed to load: res/ziti.fnt [error]Failed to load: res/ziti.png 知道的说说吧 附件 : --> 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20170811
...ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时候可以显示出来 res/test.jp...
来源: Laya_社区 发布时间: 20180416
对图集 atlas和 png 加密后,应该怎么加载解密 直接 Loader.load( 'xxx.atlas' ) 加载成 buffer 解密吗,那 xxx.png 需不需要 load ? 2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180309
...法运行的问题 onmessage = function(t) { var e = t.data; e = { type: "load", url: e }; switch (e.type) { case "load": loadImage2(e) } }; 原因在于worker中接受的参数 与所需的格式不符 手动修改下就好了 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20201021