大约有 24 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0026 秒)
...tring 图集地址或者texture地址,比如 Loader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/LoaderManager.ts:451 清理当前未完成的加载,所有未加载的内容全部停止加载...
来源: Laya3.0_api 发布时间: 20231102
...,#ffffff"; this.combobox.selectedIndex = 1; this.combobox.scrollBarSkin = "atlas/comp/vscroll.png"; } } 二、通过代码创建ComboBox组件 在进行书写代码的时候,免不了通过代码控制UI,创建UI_ComboBox类,通过代码设定ComboBox相关的属性。下述示例演示了如...
来源: Laya3.0_文档 发布时间: 20251010
...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...
来源: Laya3.0_文档 发布时间: 20251010
...dth, height, sizeGrid, false, color)); } 代码示例: Laya.loader.load("atlas/comp/image.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制九宫格纹理 sp.graphics.draw9Grid(res, 0, 0, 1024, 626, [0, 0, 0, 0, 1]); this.owner.addChild(sp); }); 运行效果: (图9-2...
来源: Laya3.0_文档 发布时间: 20251010