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

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

91. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 48%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, onSkinLoadComplete)); /***加载资源完成***/ function onSkinLoadComplete(e) { //创建垂直滚动条 createVScroller(); } /***创建水平滚动条***/ function createVScrolle...

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

92. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***...

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

93. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***...

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

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

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

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

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

96. laya.ui.ProgressBar_API3.0 [ 44%]

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

97. UI-RefreshList [ 42%]

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

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

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

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

99. 分享一个Shader版的CoolDown实现 [ 33%]

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