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

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

761. laya.utils.Pool [ 85%]

...流畅度。 Public Methods  MethodDefined By  clearBySign(sign:String):void[static] 清除对象池的对象。 Pool  createByClass(cls:Class):*[static] 根据类名回收类的实例 Pool  getItem(sign:String):*[static] 根据传入的对象类型标识字符,获取对象池中已存储...

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

762. 网络通信 · LayaAir3文档 · LAYABOX [ 85%]

....PROGRESS, this, this.processHandler); } private processHandler(data:any): void { console.log("processHandler"); } private errorHandler(error:any): void { console.log("errorHandler"); } private completeHandler(data:any): void { console.log("completeHandler"); } } new LayaSample(); 2.2 GET 上面这...

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

763. laya.d3.core.particleShuriKen.module.GradientDataInt [ 85%]

... GradientDataInt 实例。 GradientDataInt  add(key:Number, value:int):void 增加整形渐变。 GradientDataInt  clone():* 克隆。 GradientDataInt  cloneTo(destObject:*):void 克隆。 GradientDataIntProperty DetailgradientCountpropertygradientCount:int  [read-only] 整形渐变数量。...

来源: laya_api 发布时间: 20170929

764. laya.d3.core.particleShuriKen.module.GradientDataInt [ 85%]

... GradientDataInt 实例。 GradientDataInt  add(key:Number, value:int):void 增加整形渐变。 GradientDataInt  clone():* 克隆。 GradientDataInt  cloneTo(destObject:*):void 克隆。 GradientDataIntProperty DetailgradientCountpropertygradientCount:int  [read-only] 整形渐变数量。...

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

765. 鼠标交互-拖动 [ 85%]

...r.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); this.ape.loadImage(this.ApePath); Laya.stage.addChild(this.ape); var texture: Texture = Laya.loader.getRes(this.ApePath); ...

来源: Laya2.0_示例 发布时间: 20260303

766. laya.d3.resource.models.Mesh [ 85%]

...,禁止使用。 Mesh  _setSubMeshes(subMeshes:Vector.<SubMesh>):void 添加子网格(开发者禁止修改)。 Mesh  getRenderElement(index:int):IRenderable[override] 获取渲染单元,请重载此方法。 Mesh  getRenderElementsCount():int[override] 获取渲染单元数量,请...

来源: laya_api 发布时间: 20170929

767. 鼠标交互-自定义事件 [ 85%]

....stage.bgColor = "#232628"; this.createSprite(); } private createSprite(): void { this.sp = new Sprite(); this.sp.graphics.drawRect(0, 0, 200, 200, "#D2691E"); this.sp.pivot(100, 100); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; this.sp.size(200, 200); Laya.stage.addChild(th...

来源: Laya2.0_示例 发布时间: 20260303

768. laya.utils.PerformancePlugin_API3.0 [ 85%]

... Accessors Static enable get enable(): boolean set enable(value: boolean): void Defined in laya/utils/Performance.ts:60 Returns boolean Defined in laya/utils/Performance.ts:53 Parameters value: boolean Returns void Static enableDataExport get enableDataExport(): boolean set enableDataExport(value: b...

来源: Laya3.0_api 发布时间: 20231102

769. laya.physics.joint.MotorJoint [ 85%]

... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...

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

770. UI-List [ 85%]

...g"); } list.array = data; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID:...

来源: Laya2.0_示例 发布时间: 20260303