• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 64 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0140 秒)

31. 在微信小游戏中使用BitmapFont会导致报错. [ 68%]

...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

32. 使用layaair-cmd管理资源版本报错 [ 67%]

...理资源版本报错 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

33. 关于资源加载的问题 [ 67%]

...写的 //程序入口 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

34. 使用laya官方示例代码制作微信小游戏无法显示 [ 65%]

...//程序入口 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

35. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 65%]

...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

36. 限制区域拖动效果,为什么会无法限制呢? [ 65%]

...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

37. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 64%]

...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

38. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 64%]

...der(); //激活资源版本控制,版本文件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 v...

来源: Laya2.0_文档 发布时间: 20210715

39. 刚刚接触2天layaair,有几个问题请教。 [ 64%]

...由IDE发布功能自动生成,如果没有也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded() { //激活大小图映射,加载小图的时候,如果发现小图在大...

来源: Laya_社区 发布时间: 20181027

40. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 63%]

...der(); //激活资源版本控制,版本文件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 v...

来源: Laya2.0_文档 发布时间: 20210715