大约有 4 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0037 秒)
...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, th...
来源: Laya3.0_文档 发布时间: 20251010
...og(`成功添加 ${successCount} 个纹理`); const urls = [ "resources/ui/button.png", "resources/ui/panel.png", "resources/ui/icon.png" ]; Laya.loader.load(urls).then(() => { atlasManager.addTexturesByUrl(urls); }); 2.3 移除纹理 移除指定纹理 //接口 removeTexture(textureId: number, l...
来源: Laya3.0_文档 发布时间: 20260131
...Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): gui.Button; createCheckbox(autoSize?: boolean): gui.Button; createIconCheckbox(flat?: boolean): gui.Button; createRadio(): gui.Button; createComboBox()...
来源: Laya3.0_文档 发布时间: 20251010
...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button, caption: "切换按钮" }) public btn: Laya.Button; spine: Laya.Spine2DRenderNode; //外部皮肤 weaponSkin: Laya.ExternalSkin = new Laya.ExternalSkin(); //外部皮肤列表项 weaponSkinItem: Laya.ExternalSkinItem ...
来源: Laya3.0_文档 发布时间: 20260131