大约有 158 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
Laya_社区(117) Laya2.0_文档(16) Laya3.0_文档(13) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya_示例(2) Laya2.0_api(2)
...ar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then(() => { // 创建滚动条 var hs: Laya.HScrollBar = new Laya.HScrollBar(); hs.skin = "atlas/comp/hscroll.png"; hs.width = 300; hs.pos(300, 300); hs.min = 0; hs.max = 100; hs.changeHandler = new Lay...
来源: Laya3.0_文档 发布时间: 20251010
...ar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then(() => { // 创建滚动条 var vs: Laya.VScrollBar = new Laya.VScrollBar(); vs.skin = "atlas/comp/vscroll.png"; vs.height = 300; vs.pos(300, 300); vs.min = 0; vs.max = 100; vs.changeHandler = new La...
来源: Laya3.0_文档 发布时间: 20251010
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { progressBar = new ProgressBar("resource/ui/progress.pn...
来源: Laya3.0_api 发布时间: 20231115
... string): void { Laya.SoundManager.stopAll(); Laya.loader.clearRes(currentBgmUrl); Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }], Laya.Handler.create(this, () => { console.log("----playMusic111 ...
来源: Laya_社区 发布时间: 20250930
...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
...断游戏本身的体验。 在加载2D资源的时候,通常使用`Laya.loader.load()`方法预加载,而预加载3D资源必须要用`Laya.loader.create()`方法。在加载完成后,可以直接使用`Laya.loader.getRes()`这个方法来获取加载完成的资源。 批量预加载的示...
来源: Laya2.0_文档 发布时间: 20210714
...渲染效果 alpha遮罩 用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); -----...
来源: Laya_社区 发布时间: 20170606
...et监听 创建树Tree 该怎么回调mouseHandler 形参该传什么 Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 怎么停止正在运行Laya.timer.frameLoop的回调函数 Skeleton 类播放完成一遍后...
来源: Laya_社区 发布时间: 20180119