大约有 3 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0031 秒)
...码控制UI,创建UI_List类,通过代码设定List相关的属性。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_List extends Laya.Script { public _list: Laya.List; constructor() { super(); } onAwake(): void { var list: Laya.List = new Laya.List(); list.item...
来源: Laya3.0_文档 发布时间: 20251010
...图3-5所示,我们希望把Title预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); ...
来源: Laya3.0_文档 发布时间: 20241014
...图3-5所示,我们希望把Title预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); ...
来源: Laya3.0_文档 发布时间: 20251105