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

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

1. 加载-加载序列 [ 100%]

...开发语言、LayaAirIDE让项目开发更高效。(function() { var Texture = Laya.Texture; var Handler = Laya.Handler; var numLoaded = 0; var resAmount = 3; (function() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 La...

来源: Laya_示例 发布时间: 20251130

2. laya.loaders.Texture2DLoader_API3.0 [ 98%]

...Protected All Inherited Externals Only exported Menu Globals "laya/loaders/TextureLoader" Texture2DLoader Class Texture2DLoader Hierarchy Texture2DLoader Implements IResourceLoader Index Constructors constructor Methods load Constructors constructor new Texture2DLoader(): Texture2DLoader Defined in ...

来源: Laya3.0_api 发布时间: 20231115

3. 加载-加载序列 [ 98%]

...r.create(this, this.onAssetLoaded), null, null, 2, false); } onAssetLoaded(texture) { console.log(texture.url); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } } new Loader_Sequence();module laya { import Texture = Laya.Texture; i...

来源: Laya2.0_示例 发布时间: 20251130

4. laya.loaders.TextureLoader_API3.0 [ 97%]

...Protected All Inherited Externals Only exported Menu Globals "laya/loaders/TextureLoader" TextureLoader Class TextureLoader Hierarchy TextureLoader Implements IResourceLoader Index Methods load wrapTex2D Methods load load(task: ILoadTask): Promise<Texture> Implementation of IResourceLoader.loa...

来源: Laya3.0_api 发布时间: 20231115

5. laya.display.cmd.DrawTexturesCmd_API3.0 [ 94%]

...d All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawTexturesCmd" DrawTexturesCmd Class DrawTexturesCmd 根据坐标集合绘制多个贴图 Hierarchy DrawTexturesCmd Index Properties colors pos texture ID Methods recover Properties colors colors: number[] Defined in laya/displ...

来源: Laya3.0_api 发布时间: 20231115

6. laya.ani.bone.SkinSlotDisplayData_API3.0 [ 93%]

...nSlotDisplayData Index Properties attachmentName bones height lengths name texture transform triangles type uvs verLen vertices weights width Methods createTexture destory Properties attachmentName attachmentName: string Defined in laya/ani/bone/SkinSlotDisplayData.ts:12 附件名称 bones bones: an...

来源: Laya3.0_api 发布时间: 20231115

7. laya.display.cmd.DrawImageCmd_API3.0 [ 93%]

...ImageCmd 绘制图片 Hierarchy DrawImageCmd Index Properties color height texture width x y ID Methods recover Properties color color: number = 4294967295 Defined in laya/display/cmd/DrawImageCmd.ts:34 (可选)绘图颜色 height height: number Defined in laya/display/cmd/DrawImageCmd.ts:31 (...

来源: Laya3.0_api 发布时间: 20231115

8. laya.d3.shader.pbr.PBRDefaultDFG_API3.0 [ 93%]

...ltDFG Hierarchy PBRDefaultDFG Index Accessors defaultDFG Methods DefaultDfgTexture Accessors Static defaultDFG get defaultDFG(): Texture2D set defaultDFG(value: Texture2D): void Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:13 Returns Texture2D Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:16 Para...

来源: Laya3.0_api 发布时间: 20231102

9. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 93%]

...ForGraphic Index Constructors constructor Properties canvasPadding indexes texture transform useUvTransform uvTransform uvs vertices Methods getBounds init2 Constructors constructor new SkinMeshForGraphic(): SkinMeshForGraphic Defined in laya/ani/bone/canvasmesh/SkinMeshForGraphic.ts:9 创建SkinGra...

来源: Laya3.0_api 发布时间: 20231115

10. laya.ani.bone.canvasmesh.MeshData_API3.0 [ 91%]

...erarchy MeshData SkinMeshForGraphic Index Properties canvasPadding indexes texture useUvTransform uvTransform uvs vertices Methods getBounds Properties canvasPadding canvasPadding: number = 1 Defined in laya/ani/bone/canvasmesh/MeshData.ts:43 扩展像素,用来去除黑边 indexes indexes: Uint16Ar...

来源: Laya3.0_api 发布时间: 20231115