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

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

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

...然后调用回调函数渲染item。 //创建100个对象,注意这里不能使用numChildren,numChildren是只读的。 aList.numItems = 100; 如果新设置的项目数小于当前的项目数,那么多出来的item将放回池里。 使用这种方式生成的列表,如果你需要更新...

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

2. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

... Getter ,那这个属性则是只读的,仅可以在IDE中显示,但不能编辑。 getter和setter同时存在的装饰器使用示例代码如下: const { regClass, property } = Laya; @regClass() class Animal { private _weight: number = 0; @property( { type : Number } ) get weight() : numb...

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