大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...ayabox.com/demo2/?language=ch&category=3d&group=Texture&name=TextureGPUCompression)) 在这里使用了 `URL.basePath` 方法,去设置加载路径,并且不同的平台加载不同的资源,来使用压缩纹理 ```typescript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/s...
来源: Laya2.0_文档 发布时间: 20210714
...ayabox.com/demo2/?language=ch&category=3d&group=Texture&name=TextureGPUCompression)) 在这里使用了 `URL.basePath` 方法,去设置加载路径,并且不同的平台加载不同的资源,来使用压缩纹理 ```javascript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/s...
来源: Laya2.0_文档 发布时间: 20210715
关于Laya.loader.load和getRes的问题 我正在阅读这个示例:https://layaair.ldc.layabox.co ... Image 以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Te...
来源: Laya_社区 发布时间: 20170804
..."#232628"; setup(); })(); function setup() { var dialog = new Image("../../res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })();module laya { import Stage = Laya.Stage; import Image = Laya.Image; import WebGL = Laya.WebGL; export class UI_Image { constructor() { // 不...
来源: Laya_示例 发布时间: 20251209
...。 2018-03-03 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: res 里面有资源吗 2018-03-03 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wq 相关问题 加载到舞台的3D模型不显示贴图 2.2.0beta4 发布微信...
来源: Laya_社区 发布时间: 20180303
...立即加载 for (int i = 0; i < 10; ++i) { var url:String = "res/xxx" + i + ".png"; Laya.loader.load(url); } // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html = new HTMLDivElement(); html.innerHTML = "<img src='res/...
来源: Laya_社区 发布时间: 20181219
LayaAir引擎 内存释放问题 export class ResUIModuleManager { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @mem...
来源: Laya_社区 发布时间: 20170905
...误信息 Laya.Browser.window.onerror = handleErr; //初始化函数 LoadRes(); })(); function handleErr(msg,url,l) { //return true or false return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATL...
来源: Laya_社区 发布时间: 20170228
Laya.SoundManager.playSound报错 Laya.SoundManager.playSound("res/sound/bullet.mp3");官方的飞机教程,同样插入音效会报错 附件 : --> 2018-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 ...
来源: Laya_社区 发布时间: 20180614
clearUnLoaded的bug LayaAirIDE1.7.9 function test(){ var arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")] Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) Laya.loader.clearUnLoaded() Laya.loader.load(arr, Laya.Handler.create(this, onComplete))...
来源: Laya_社区 发布时间: 20190630