大约有 3 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0016 秒)
...的其他属性也可以通过代码来设置。下述示例代码演示了如何通过代码创建不同皮肤(样式)的Label,开发者可以自己通过代码设置Label,创建出符合自己需要的文字效果。 示例代码: const { regClass, property } = Laya; const Label = Laya.L...
来源: Laya3.0_文档 发布时间: 20251010
...UI_Tab类,并通过代码设定Tab相关的属性。下述示例演示了如何通过代码创建一个Tab组件并设置其属性。 示例代码如下: const { regClass, property } = Laya; @regClass() export class UI_Tab extends Laya.Script { // 图片资源来自“引擎API使用示例” pr...
来源: Laya3.0_文档 发布时间: 20251010
...adio类,并通过代码设定Radio相关的属性。下述示例演示了如何通过代码创建一个Radio组件并设置其属性。 示例代码如下: const { regClass, property } = Laya; @regClass() export class UI_Radio extends Laya.Script { constructor() { super(); } // 组件被激活...
来源: Laya3.0_文档 发布时间: 20251010