大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ntDataNumber 实例。 GradientDataNumber add(key:Number, value:Number):void 增加浮点渐变。 GradientDataNumber clone():* 克隆。 GradientDataNumber cloneTo(destObject:*):void 克隆。 GradientDataNumber getAverageValue():Number 获取平均值。 GradientDataNumber getKeyByI...
来源: laya_api 发布时间: 20170929
...ntDataNumber 实例。 GradientDataNumber add(key:Number, value:Number):void 增加浮点渐变。 GradientDataNumber clone():* 克隆。 GradientDataNumber cloneTo(destObject:*):void 克隆。 GradientDataNumber getAverageValue():Number 获取平均值。 GradientDataNumber getKeyByI...
来源: Laya2.0_api 发布时间: 20190513
...his.apePath, Handler.create(this, this.createApe)); } private createApe(): void { // 添加一只猩猩 this.ape = new Sprite(); this.ape.loadImage(this.apePath); var texture: Texture = Laya.loader.getRes(this.apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.w...
来源: Laya_示例 发布时间: 20260303
2.4 生命周期触发多次,连constructor都执行了两次 onAwake():void { console.log("onAwake"); } onStart():void { console.log("onStart"); } onEnable():void { console.log("onEnable"); } onDisable():void { console.log("onDisable"); } 附件 : --> 2019-12-09 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20191209
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg); } private createPhoenixes(): void { var scaleFactor: number = Math.min( Laya.stage.width / (this.phoenixWi...
来源: Laya_示例 发布时间: 20260303
.../d3/component/staticmesh/StaticBatchMesh.ts:162 Methods destroy destroy(): void Defined in laya/d3/component/staticmesh/StaticBatchMesh.ts:179 Returns void setBuffer setBuffer(vertex: VertexBuffer3D, index: IndexBuffer3D): void Defined in laya/d3/component/staticmesh/StaticBatchMesh.ts:170 Parameter...
来源: Laya3.0_api 发布时间: 20231115
...47 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in laya/d3/component/AvatarMask.ts:56 克隆。 Parameters destObject: any 克隆源。 Returns void getAllTranfromPath getAllTranfromPath(): {} Defined in laya/d3/component/AvatarMask.ts:39 获得遮罩信息 Re...
来源: Laya3.0_api 发布时间: 20231102
...], Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progres...
来源: Laya2.0_示例 发布时间: 20260303
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 200; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this...
来源: Laya_示例 发布时间: 20260303
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg); } private createPhoenixes(): void { var scaleFactor: number = Math.min( Laya.stage.width / (this.phoenixWi...
来源: Laya2.0_示例 发布时间: 20260303