大约有 520 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0049 秒)
Laya_社区(425) Laya2.0_文档(51) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...件放在了 index.html同级目录下,然后打包成app后,用Laya.loader.getRes("data/equip.json")会报错。本地测试都没问题。 2017-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - ...
来源: Laya_社区 发布时间: 20170730
...ources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调...
来源: Laya3.0_文档 发布时间: 20240910
...调。这个是异步获取,如果你要单个获取的话 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 _th...
来源: Laya_社区 发布时间: 20180530
...arq2.0/bin/libs/laya.core.js:12859:15) TypeError: Cannot read property 'Loader' of undefined laya.core.js:23502 at Loader.__proto.onLoaded (file:///F:/Laya2Workspace/laya.feifan.bandarq2.0/bin/libs/laya.core.js:23502:173) at HTMLImageElement.onload (file:///F:/Laya2Workspace/laya.feifan.bandar...
来源: Laya_社区 发布时间: 20191010
...版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 Laya.Loader.getRes请教 LayaAir3D 导出和使用U3D粒子特效 问题状态 最新活动: 2019-11-09 17:58 浏览: 1456 关注: 1 人
来源: Laya_社区 发布时间: 20191109
...json,并且在对应子类里面调用了createView this.createView(Laya.loader.getRes("widget/CustomWidget.json")) 但是分离模式的情况下,一个View还是没法显示内嵌的其他View,是什么原因呢? 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180112
...行tex1.repeat = true;有什么作用? var tex1:Laya.Texture = Laya.Loader.getRes(texturePath); tex1.repeat = true; 2018-01-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jincaizi 相关问题 请问LayaAir...
来源: Laya_社区 发布时间: 20180110
...要获取对应的模型,每次都要 let waimianSp:Laya.Sprite3D = Laya.loader.getRes("res/atlas/LayaScene_test2/Conventional/test2.lh") as Laya.Sprite3D; let sp3d:Laya.Sprite3D = waimianSp.getChildByName("KWHF_L") as Laya.Sprite3D; sp3d才是我要用到的模型(并且我每个模型文件...
来源: Laya_社区 发布时间: 20200420
...source:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addC...
来源: Laya2.0_文档 发布时间: 20210714
... ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh var sphereMesh:M...
来源: Laya2.0_文档 发布时间: 20210714