大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0118 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ction LabelAtlas(url,clipX,clipY){ LabelAtlas.__super.call(this); (clipX===void 0)&& (clipX=1); (clipY===void 0)&& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class(LabelAtlas,'laya.customUI.LabelAtlas',_super); var __proto=LabelAtlas.prototype; return LabelAt...
来源: Laya_社区 发布时间: 20170206
...n, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var ta: TextArea = new TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; var scaleFactor: Number ...
来源: Laya2.0_示例 发布时间: 20260303
...不需要自动回收,设置once参数为false。 Handler recover():void 清理并回收到 Handler 对象池内。 Handler run():* 执行处理器。 Handler runWith(data:*):* 执行处理器,携带额外数据。 Handler setTo(caller:*, method:Function, args:Array, once:Boolean):Ha...
来源: laya_api 发布时间: 20170929
...点击屏幕就会响应代码: private onMouseClick(event:Laya.Event):void{ //获取点击位置的地图坐标 const uiPosX = Math.abs(this.tMap.viewPortX) + event.stageX / this.tMap.scale; const uiPosY = Math.abs(this.tMap.viewPortY) + event.stageY / this.tMap.scale; //将地图坐标转换为...
来源: Laya_社区 发布时间: 20260113
...Loaded), null, null, 2, false); } private onAssetLoaded(texture: Texture): void { console.log(texture.source); // 恢复默认并发加载个数。 if (++this.numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } } } new laya.Loader_Sequence();package { import laya.resource.Text...
来源: Laya2.0_示例 发布时间: 20260303
...不需要自动回收,设置once参数为false。 Handler recover():void 清理并回收到 Handler 对象池内。 Handler run():* 执行处理器。 Handler runWith(data:*):* 执行处理器,并携带额外数据。 Handler setTo(caller:*, method:Function, args:Array, once:Boolean)...
来源: Laya2.0_api 发布时间: 20190513
...Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffff...
来源: Laya2.0_示例 发布时间: 20260303
...//组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.setSpotLight(); } // 创建聚光灯 setSpotLight(): void { this.spotLight.pos(336, 280); let spotLightComponent = this.spotLight.getComponent(Laya.SpotLight2D); spotLightComponent.color = new Laya.Color(1, 0.812,...
来源: Laya3.0_文档 发布时间: 20251010
...rameOverTime clone():* 克隆。 FrameOverTime cloneTo(destObject:*):void 克隆。 FrameOverTime createByConstant(constant:Number):FrameOverTime[static] 通过固定帧创建一个 FrameOverTime 实例。 FrameOverTime createByOverTime(overTime:GradientDataInt):FrameOverTime[static] 通...
来源: laya_api 发布时间: 20170929
...rameOverTime clone():* 克隆。 FrameOverTime cloneTo(destObject:*):void 克隆。 FrameOverTime createByConstant(constant:Number):FrameOverTime[static] 通过固定帧创建一个 FrameOverTime 实例。 FrameOverTime createByOverTime(overTime:GradientDataInt):FrameOverTime[static] 通...
来源: Laya2.0_api 发布时间: 20190513