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

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

1. 预制体模块 · LayaAir3文档 · LAYABOX [ 100%]

... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...

来源: Laya3.0_文档 发布时间: 20241014

2. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 99%]

... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...

来源: Laya3.0_文档 发布时间: 20251105

3. 国际化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 99%]

...使用的方式为: let myI18n: Laya.Translations; myI18n = await Laya.loader.load("editorResources/i18nSettings.i18ns"); console.log(myI18n.t("a")); 在很多情况下,如果只是代码里用到的一些小量国际化的支持,并不想创建多个json文件,那么也有全代码的方法...

来源: Laya3.0_文档 发布时间: 20251010

4. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 87%]

...,指定添加到哪个大纹理。 //使用示例 const texture = Laya.loader.getRes("resources/hero.png", Laya.Loader.IMAGE); const success = atlasManager.addTexture(texture, 0.5, 0); // 添加到指定图集,缩放为 0.5 通过 URL 添加纹理 //接口 addTextureByUrl(url: string, scale: numbe...

来源: Laya3.0_文档 发布时间: 20260131

5. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...内容并返回。如果不需要支持热重载,则忽略。 @Laya.regLoader(["abc"], null, true) export class DemoAssetLoader implements Laya.IResourceLoader { async load(task: Laya.ILoadTask): Promise<any> { let json = await task.loader.fetch(task.url, "json"); let res = task.obsoluteInst...

来源: Laya3.0_文档 发布时间: 20251010

6. 统计信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...ysicaCharacterController)9.17 Physics Joint Count(C_PhysicsJoint)10. Loader(加载)10.1 Load Resource Time(T_LoadResourceTime)10.2 Load Resource Count(C_LoadResourceCount)10.3 Load Request Count(C_LoadRequestCount)10.4 Load Request Time(T_LoadRequestTime)引擎统计信息 ...

来源: Laya3.0_文档 发布时间: 20260128