大约有 64 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0140 秒)
...nit(); //程序入口 Laya.init(600, 400); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ let timerFont = new Laya.BitmapFont(); timerFont.loadFont('res/timerfont....
来源: Laya_社区 发布时间: 20180509
...理资源版本报错 IOS系统,在项目目录下运行:layaair-cmd resourceVersion -i bin -o ./ -n 1000 返回是一堆报错: internal/child_process.js:323 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at _errnoException (util.js:1022:11) at ChildProcess.spawn (internal/child_pr...
来源: Laya_社区 发布时间: 20180514
...写的 //程序入口 Laya.init(600, 400); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)...
来源: Laya_社区 发布时间: 20180327
...//程序入口 Laya.init(600, 400, WebGL); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoad...
来源: Laya_社区 发布时间: 20180529
...port laya.display.Scene; import laya.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; publ...
来源: Laya2.0_文档 发布时间: 20210714
...scaleModel = "full"; // DebugTool.init() //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function o...
来源: Laya_社区 发布时间: 20180627
...ar key in this.astcconfig){ var fileversion = Laya.ResourceVersion.manifest[key]||key; fileversion = fileversion.replace(".png",".ktx").replace(".jpg",".ktx"); Laya.ResourceVersion.manifest[key] = fileversion; ...
来源: Laya_社区 发布时间: 20221013
...der(); //激活资源版本控制,版本文件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 v...
来源: Laya2.0_文档 发布时间: 20210715
...由IDE发布功能自动生成,如果没有也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded() { //激活大小图映射,加载小图的时候,如果发现小图在大...
来源: Laya_社区 发布时间: 20181027
...der(); //激活资源版本控制,版本文件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 v...
来源: Laya2.0_文档 发布时间: 20210715