大约有 1,312 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0047 秒)
Laya_社区(1039) Laya2.0_文档(79) Laya3.0_文档(56) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onColorPickerSkinLoaded(); } ); } private onColorPickerSkinLoaded(e: any = null): void { let colorPicker: Laya.ColorPicker = new Laya.ColorPicker(); colorPicker.selectedColor = "#ff0...
来源: Laya3.0_文档 发布时间: 20251010
...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...
来源: Laya_社区 发布时间: 20180302
...本1.7.15beat 资源管理的问题 问题描述: 1.官方是没有提供loader加载外部资源的策略吗? 如果有怎么使用? 2使用1.7.15beat ide发布版本管理文件被重命名后,本地4M资源中layaNativeDir 里面的资源会加载不到! 我找到的问题: 1.我只能通...
来源: Laya_社区 发布时间: 20180118
...以在Laya.MiniAdpter.getFileList()查找到对应缓存 但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取 如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...
来源: Laya_社区 发布时间: 20180825
...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); //...
来源: Laya_社区 发布时间: 20190708
...现,2.1版本是正常的,还有,我的Laya里没有Laya.init和Laya.loader.load。 LayaByteTest.rar 2016-09-14 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 刚才测试错了,是layaAir的测试方式 LayaFlash下,使用url.data的方式去获取xml的内容确实有问题 可...
来源: Laya_社区 发布时间: 20160914
...uot;../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.a...
来源: Laya_社区 发布时间: 20180604
...个sk,正常显示 len = 2; //如果添加2个,就都无法显示 Laya.loader.load("resources/hongdian.sk").then((templet: Laya.Templet) => { for (let i = 1; i <= len; i++) { let sk = templet.buildArmature(0); sk.pos(100 * i, 100 * i); sk.play(0, true); this.owner.addChild(sk); } }); 附...
来源: Laya_社区 发布时间: 20251203
... 分享:LayaAir下如何获取图集下的小图资源? 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 app用dcc更新资源问题 ui打包资源同步bin目录下, 为什么更新IDE后在前面加了...
来源: Laya_社区 发布时间: 20180323
...败,加载 xml, 图集等是正常的 如题所述。 使用的是 Laya.loader.load(...) 加载。 加载 .proto或者 .txt 等文件时,getRes 的结果都是一个 10282 长度的 ArrayBuffer ,用 TextDecoder 导出来是如下字符: 附件 : --> 2018-03-27 添加评论 免费帖...
来源: Laya_社区 发布时间: 20180327