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

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

901. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 44%]

...50); } /***滚动条位置变化回调***/ private function onChange(value:Number):void { promptText.text= "滚动条的位置: value=" + value; } } } ```

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

902. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 44%]

...s Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {              ...

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

903. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...r(this, this.onChange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010

904. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...r(this, this.onChange); this.owner.addChild(hs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010

905. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 43%]

...alpha属性并赋值给Item对象 if(e._dataSource.isAlpha) { var alphaNum:Number=e._dataSource.isAlpha; e.alpha=alphaNum; }//如果未设置alpha的项,则默认透明度为1 else { e.alpha=1; } }附件已经上传,可以参考,把alpha改成你对应的visible属性即可!   TreeAlpha.rar...

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

906. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

... string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = ...

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

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

...ollBar.y-50); } /***滚动条位置变化回调***/ private onChange(value:Number):void { this.promptText.text= "滚动条的位置: value=" + value; } } } new laya.UI_ScrollBar(); ```

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

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

...ollBar.y-50); } /***滚动条位置变化回调***/ private onChange(value:Number):void { this.promptText.text= "滚动条的位置: value=" + value; } } } new laya.UI_ScrollBar(); ```

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

909. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...s: Vector3[] = moveScript.moveRanges; moverLights.length = 15; for (var i: number = 0; i < 15; i++) { var pointLight: Laya.Sprite3D = (<Laya.Sprite3D>this.scene.addChild(new Laya.Sprite3D())); var pointLightCom: Laya.PointLightCom = pointLight.addComponent(Laya.PointLightCom); pointLightCom...

来源: Laya3.0_文档 发布时间: 20251010

910. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

...cte); } /**根据选择tab的索引切换页面**/ private onSelecte(index:number):void{ //切换ViewStack子页面 this.comp.viewStack.selectedIndex=index; } } new ComponentDemo(); ``` 运行示例代码,效果如动图10所示。 ![动图10](img/1.gif)(动图10)

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