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

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

41. 垂直滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...ng"; vs.height = 300; vs.pos(300, 300); vs.min = 0; vs.max = 100; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); }); } private onChange(value: number): void { this.text.text = "滚动条的位置: value=" + value; } } 运行效果: (动图2-1) Copyright ©...

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

42. laya.d3.animation.AnimationClip_API3.0 [ 53%]

...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/animation/AnimationClip.ts:61 加载动画片段。 Parameters url: string 动画片段地址。 complete: Handler 完成回掉。load Returns void Globals "laya/d3/animation/AnimationClip" A...

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

43. laya.ui.Tree_API3.0 [ 53%]

...ackage { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar....

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

44. laya.map.TiledMap_API3.0 [ 53%]

...ectangle createMap createMap(mapName: string, viewRect: Rectangle, completeHandler: Handler, viewRectPadding?: Rectangle, gridSize?: Point, enableLinear?: boolean, limitRange?: boolean): void Defined in laya/map/TiledMap.ts:160 创建地图 Parameters mapName: string JSON文件名字 viewRect: Recta...

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

45. laya.d3.core.Avatar_API3.0 [ 52%]

...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Avatar.ts:35 加载Avatar文件。 Parameters url: string Avatar文件。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Avatar" Avatar constructor destoryedImmedia...

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

46. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...rol 3"; tab.selectedIndex = 1; this.onSelect(tab.selectedIndex); tab.selectHandler = new Laya.Handler(this, this.onSelect); this.owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示:...

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

47. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创...

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

48. laya.net.Loader_API3.0 [ 51%]

...url: string | ILoadURL | (string | Readonly<ILoadURL>)[], complete?: Handler, progress?: Handler, type?: string, priority?: number, cache?: boolean, group?: string, ignoreCache?: boolean, useWorkerLoader?: boolean): Promise<any> Defined in laya/net/Loader.ts:204 加载资源。 Parameter...

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

49. laya.display.BitmapFont_API3.0 [ 50%]

...的资源。 Returns void Static loadFont loadFont(path: string, complete: Handler): void Defined in laya/display/BitmapFont.ts:33 通过指定位图字体文件路径,加载位图字体文件,加载完成后会自动解析。 Parameters path: string 位图字体文件的路径。 complete: Hand...

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

50. laya.ui.List_API3.0 [ 49%]

...了一个 List 实例。 package { import laya.ui.List; import laya.utils.Handler; public class List_Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load([...

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