大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...kin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _proMask.scaleX = 0; _progress.mask = _proMask; _bar.stateNum = 1; } override protected function createCh...
来源: Laya_社区 发布时间: 20170327
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createInteractiveTarget(); this.createLogger(); } private createInteractiveTarget(): void { var rect: Sprite = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.s...
来源: Laya_示例 发布时间: 20260303
...变数量。 Returns number Methods add add(key: number, value: Vector2): void Defined in laya/d3/core/particleShuriKen/module/GradientDataVector2.ts:29 增加二维向量渐变。 Parameters key: number 生命周期,范围为0到1。 value: Vector2 二维向量值。 Returns void clone clone(): a...
来源: Laya3.0_api 发布时间: 20231115
...eturns MeshRenderer[] Methods addElement addElement(render: MeshRenderer): void Defined in laya/d3/component/staticmesh/StaticMeshMergeInfo.ts:63 Parameters render: MeshRenderer Returns void destroy destroy(): void Defined in laya/d3/component/staticmesh/StaticMeshMergeInfo.ts:70 Returns void match ...
来源: Laya3.0_api 发布时间: 20231115
... 实例。 Vector2 clone():* 克隆。 Vector2 cloneTo(destObject:*):void 克隆。 Vector2 scale(a:Vector2, b:Number, out:Vector2):void[static] 缩放二维向量。 Vector2Public Constants ConstantDefined By ONE : Vector2[static] 一向量,禁止修改Vector2 ZERO : Vector2[static]...
来源: laya_api 发布时间: 20170929
... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...
来源: Laya2.0_api 发布时间: 20190513
...法: static load(url: string, complete?: Handler, progress?: Handler): void; static open(url: string, closeOther?: boolean, param?: any, complete?: Handler, progress?: Handler): void; static close(url: string, name?: string): boolean; static closeAll(): void; static setLoadingPage(loadPage: Scene)...
来源: Laya_社区 发布时间: 20181128
...a.stage.on("resize", this, this.onResize); } private onBoyClick(e: Event): void { //点击后小人会放大缩小 var boy: Sprite = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } private onTxtClick(e: Event): void { //点击后切换适配模式 e.stopPropagati...
来源: Laya_示例 发布时间: 20260303
..., Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> ...
来源: Laya2.0_文档 发布时间: 20210714
...a.stage.on("resize", this, this.onResize); } private onBoyClick(e: Event): void { //点击后小人会放大缩小 var boy: Sprite = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } private onTxtClick(e: Event): void { //点击后切换适配模式 e.stopPropagati...
来源: Laya2.0_示例 发布时间: 20260303