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

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

1701. 自定义UI导致编辑器无显示 [ 65%]

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

1702. UI-TextArea [ 65%]

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

1703. laya.utils.Handler [ 65%]

...不需要自动回收,设置once参数为false。 Handler  recover():void 清理并回收到 Handler 对象池内。 Handler  run():* 执行处理器。 Handler  runWith(data:*):* 执行处理器,携带额外数据。 Handler  setTo(caller:*, method:Function, args:Array, once:Boolean):Ha...

来源: laya_api 发布时间: 20170929

1704. [LayaAir3]Laya旧版本的TiledMap如何隐藏某一层级的格子贴图 [ 65%]

...点击屏幕就会响应代码: 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

1705. 加载-加载序列 [ 65%]

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

1706. laya.utils.Handler [ 64%]

...不需要自动回收,设置once参数为false。 Handler  recover():void 清理并回收到 Handler 对象池内。 Handler  run():* 执行处理器。 Handler  runWith(data:*):* 执行处理器,并携带额外数据。 Handler  setTo(caller:*, method:Function, args:Array, once:Boolean)...

来源: Laya2.0_api 发布时间: 20190513

1707. 文本-自动换行 [ 64%]

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

1708. 2D聚光灯 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...//组件被启用后执行,例如节点被添加到舞台后 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

1709. laya.d3.core.particleShuriKen.module.FrameOverTime [ 64%]

...rameOverTime  clone():* 克隆。 FrameOverTime  cloneTo(destObject:*):void 克隆。 FrameOverTime  createByConstant(constant:Number):FrameOverTime[static] 通过固定帧创建一个 FrameOverTime 实例。 FrameOverTime  createByOverTime(overTime:GradientDataInt):FrameOverTime[static] 通...

来源: laya_api 发布时间: 20170929

1710. laya.d3.core.particleShuriKen.module.FrameOverTime [ 64%]

...rameOverTime  clone():* 克隆。 FrameOverTime  cloneTo(destObject:*):void 克隆。 FrameOverTime  createByConstant(constant:Number):FrameOverTime[static] 通过固定帧创建一个 FrameOverTime 实例。 FrameOverTime  createByOverTime(overTime:GradientDataInt):FrameOverTime[static] 通...

来源: Laya2.0_api 发布时间: 20190513