大约有 217 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0423 秒)
Laya_社区(147) Laya3.0_api(20) Laya2.0_文档(19) Laya3.0_文档(14) Laya2.0_示例(9) Laya_示例(6) laya_api(1) Laya2.0_api(1)
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog...
来源: Laya3.0_api 发布时间: 20231115
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():v...
来源: Laya3.0_api 发布时间: 20231115
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { vScrollBar ...
来源: Laya3.0_api 发布时间: 20231115
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var arr:Arr...
来源: Laya3.0_api 发布时间: 20231115
...800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png", "resource/ui/clip_selectBox.png", "resource/ui/clip_tree_folder.png", "resource/ui/clip_tree...
来源: Laya3.0_api 发布时间: 20231115
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this....
来源: Laya2.0_示例 发布时间: 20251130
...public/test/img/food/f8.png", "/public/test/img/food/f9.png", ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); 这个样能加载。 但是 var roleAni = new Laya.Animation(); roleAni.loadImages(); roleAni.play();...
来源: Laya_社区 发布时间: 20170718
...成功'); } else { log('字体注册失败'); } } } 4.2 方法二 通过ttfloader下载远程字体文件,注册时传入的字体名称为ttf文件名。 Laya.loader.load("res/maobi.ttf", Loader.TTF).then(() => { var label: Label = new Label(); label.font = "maobi"; label.text = "自定义嵌...
来源: Laya3.0_文档 发布时间: 20251010
Laya.loader.load(xx) 当地址""的时候,会报错。 laya 引擎是2.5的 Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{ let tur:Laya.Texture = Laya.loader.getRes(cg_url); if(tur)img_cg.graphics.drawImage(tur) ...
来源: Laya_社区 发布时间: 20201130
... size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, }); sp = new Laya.Sprite(); ...
来源: Laya_社区 发布时间: 20180625