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

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

21. laya.d3.core.ui3d.UI3D_API3.0 [ 44%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

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

22. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... class MyItem extends Laya.GButton { //注意!在onConstruct里才可以获取子对象,建议在这里做初始化,不要在构造函数里做初始化 onConstruct() { //this.xx = this.getChild("xx"); //this.xx.on(Laya.Event.CLICK, this, this.onClick); } sayHello() { console.log("Hello from M...

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

23. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

....json"; //fetch取到的是原始数据,但没有缓存,无法用getRes获取 Laya.loader.fetch(jsonPath, "json").then((_json) => { if (_json.bagList && _json.bagList.length > 0) { //把json数据传递给list组件的数据源属性array this.bagList.array = _json.bagList; } }); }...

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