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

大约有 133 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)

131. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 27%]

...内容并返回。如果不需要支持热重载,则忽略。 @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_文档 发布时间: 20240918

132. laya.ui.List_API3.0 [ 23%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var arr:Arr...

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

133. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 21%]

..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...

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