• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 158 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)

151. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

152. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

153. laya.ui.ProgressBar_API3.0 [ 41%]

...。 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

154. [LayaAirIDE3]xcode切入切出声音不播放 [ 41%]

... 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

155. UI-RefreshList [ 39%]

...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

156. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 33%]

...断游戏本身的体验。 在加载2D资源的时候,通常使用`Laya.loader.load()`方法预加载,而预加载3D资源必须要用`Laya.loader.create()`方法。在加载完成后,可以直接使用`Laya.loader.getRes()`这个方法来获取加载完成的资源。 批量预加载的示...

来源: Laya2.0_文档 发布时间: 20210714

157. 分享一个Shader版的CoolDown实现 [ 31%]

...渲染效果   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

158. socket大型项目回调 [ 16%]

...et监听 创建树Tree 该怎么回调mouseHandler 形参该传什么 Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 怎么停止正在运行Laya.timer.frameLoop的回调函数 Skeleton 类播放完成一遍后...

来源: Laya_社区 发布时间: 20180119