大约有 245 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(204) Laya2.0_文档(10) Laya3.0_文档(6) Laya3.0_api(6) Laya2.0_示例(6) Laya_示例(5) Laya2.0_api(5) laya_api(3)
...Bounds方法获取。设置为true,对性能有一定影响。 Sprite bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput bgColor : String 文本背景颜色,以字符串表示。 Label blendMode : String指定要使用的混合模式。目前只支持"...
来源: Laya2.0_api 发布时间: 20190513
... false]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK,...
来源: Laya_社区 发布时间: 20200410
...ader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); clearUnLoaded()method public function clearUnLoaded():void 清理当前未完成的加载,所有未加载的内容全部停止加载。create()method public function create(url:*, complete:Handler = null, prog...
来源: Laya2.0_api 发布时间: 20190513
...源也都进行了预加载。 //程序入口 Laya.init(852, 480, Laya.WebGL); let resArr = [ {url:"wxlocal/enemy.png",type:Laya.Loader.IMAGE}, {url:"wxlocal/bg2.jpg",type:Laya.Loader.IMAGE} ]; Laya.loader.load(resArr, Laya.Handler.create(null, o...
来源: Laya_社区 发布时间: 20191122
...ader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); complete()method protected function complete(data:*):void 加载完成。 Parameters data:* — 加载的数据。 endLoad()method public function endLoad(content:* = null):void 结束加载,处理是否缓存...
来源: Laya2.0_api 发布时间: 20190513
...含子目录)的所有文件,例如abc/**/* 排除具体文件,例如bg2.png 如图5-1所示。 (图5-1) 6、版本管理 6.1 开启版本管理 enableVersion 启用版本管理后,除引擎自带的入口文件外,其余未被忽略的文件名称都会附加一个由指定算法和...
来源: Laya3.0_文档 发布时间: 20251023
...ader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/LoaderManager.ts:451 清理当前未完成的加载,所有未加载的内容全部停止加载。 Returns void create create(url: string | (stri...
来源: Laya3.0_api 发布时间: 20231102
...ge; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() { Laya.Stat.show(0, 0); } } 通过示例代码,我们可以看到,图集的纹理压缩的代码使用是无感的,和普通的图集使用方式完全相同。 四、优...
来源: Laya3.0_文档 发布时间: 20251010
...aya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprite.loadImage("resource/ui/bg.png");//加载并显...
来源: Laya3.0_api 发布时间: 20231115
...ng 图集地址或者texture地址,比如 "res/atlas/comp.atlas"或"hall/bg.jpg" Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/Loader.ts:859 清理当前未完成的加载,所有未加载的内容全部停止加载。 Returns void event event(type: string, data?: any): boo...
来源: Laya3.0_api 发布时间: 20231115