大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0130 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...流畅度。 Public Methods MethodDefined By clearBySign(sign:String):void[static] 清除对象池的对象。 Pool createByClass(cls:Class):*[static] 根据类名回收类的实例 Pool getItem(sign:String):*[static] 根据传入的对象类型标识字符,获取对象池中已存储...
来源: Laya2.0_api 发布时间: 20190513
....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
... GradientDataInt 实例。 GradientDataInt add(key:Number, value:int):void 增加整形渐变。 GradientDataInt clone():* 克隆。 GradientDataInt cloneTo(destObject:*):void 克隆。 GradientDataIntProperty DetailgradientCountpropertygradientCount:int [read-only] 整形渐变数量。...
来源: laya_api 发布时间: 20170929
... GradientDataInt 实例。 GradientDataInt add(key:Number, value:int):void 增加整形渐变。 GradientDataInt clone():* 克隆。 GradientDataInt cloneTo(destObject:*):void 克隆。 GradientDataIntProperty DetailgradientCountpropertygradientCount:int [read-only] 整形渐变数量。...
来源: Laya2.0_api 发布时间: 20190513
...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
...,禁止使用。 Mesh _setSubMeshes(subMeshes:Vector.<SubMesh>):void 添加子网格(开发者禁止修改)。 Mesh getRenderElement(index:int):IRenderable[override] 获取渲染单元,请重载此方法。 Mesh getRenderElementsCount():int[override] 获取渲染单元数量,请...
来源: laya_api 发布时间: 20170929
....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
... 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
... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...
来源: Laya2.0_api 发布时间: 20190513
...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