大约有 356 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(99) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(10) laya_api(6) Laya2.0_api(5)
...r(this, this.onChange); Laya.stage.addChild(vs); } private onChange(value: Number): void { console.log("滚动条的位置: value=" + value); } } } new laya.UI_ScrollBar();package { import laya.display.Stage; import laya.ui.HScrollBar; import laya.ui.VScrollBar; import laya.utils.Handler; import l...
来源: Laya_示例 发布时间: 20251130
...; Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.changeAction); } tActionID:number=0; changeAction() { this.tActionID++; var aniCount:number; //获取动画动作数量 aniCount=this.skeleton.getAnimNum(); this.tActionID=this.tActionID%aniCount; //显示当前要播放的动画名 this.text.text=this...
来源: Laya2.0_文档 发布时间: 20210715
...c Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并...
来源: laya_api 发布时间: 20170929
...ing = "LayaBox"; for (let i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.height / 2 - 50; var demoString:String = "LayaBox"; for (var i...
来源: Laya2.0_示例 发布时间: 20251130
...sprite旋转以后,但是原来碰撞检测rect没有旋转 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 图片不能按轴心旋转 使用getChildByName()无法得到子节点对象 富文本下划线绘制bug 在3.1.x版本 lin...
来源: Laya_社区 发布时间: 20250816
...ode.tag Defined in laya/display/Node.ts:62 节点标签 wrapMode wrapMode: number = 0 Inherited from AnimationBase.wrapMode Defined in laya/display/AnimationBase.ts:33 播放顺序类型:AnimationBase.WRAP_POSITIVE为正序播放(默认值),AnimationBase.WRAP_REVERSE为倒序播放,AnimationBa...
来源: Laya3.0_api 发布时间: 20231115
...个问题。api上对loadimage的描述是: loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报...
来源: Laya_社区 发布时间: 20200522
...r(this, this.onChange); Laya.stage.addChild(vs); } private onChange(value: Number): void { console.log("滚动条的位置: value=" + value); } } } new laya.UI_ScrollBar();package { import laya.display.Stage; import laya.ui.HScrollBar; import laya.ui.VScrollBar; import laya.utils.Handler; import l...
来源: Laya2.0_示例 发布时间: 20251130
...archy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并...
来源: Laya2.0_api 发布时间: 20190513
...} private createCharacters(): void { this.characterGroup = []; for (var i: number = 0; i = 0; --i) { this.animateCharactor(this.characterGroup[i]); } } private animateCharactor(charactor: Sprite): void { charactor.x += this.moveSpeed; charactor.rotation += this.rotateSpeed; if (charactor.x > Laya.st...
来源: Laya2.0_示例 发布时间: 20251130