大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...擎 skin 大于512 的释放问题 setData(type: number, fight: number): void { this.imgItem = new Image(); this.imgItem.skin = 'forging/000' + (type + 1) + '.png'; this.imgItem.y = type * 231; this.name = type + ""; this.showFight(fight); } showFight(num: number): void { if (this._sprFight) this._s...
来源: Laya_社区 发布时间: 20170916
...:Socket=null; private var list:Array=; public function Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.conne...
来源: Laya_社区 发布时间: 20170724
...ya.stage.bgColor = "#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font = "SimHei"; text.fontS...
来源: Laya2.0_示例 发布时间: 20260303
...gClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始场景Scene...
来源: Laya3.0_文档 发布时间: 20251024
...ndler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 请问LayaAir中如何使图片以圆形的方式显示? 加载到舞台...
来源: Laya_社区 发布时间: 20170220
...odDefined By TrailMaterial()TrailMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...
来源: Laya2.0_api 发布时间: 20190513
...Defined By EffectMaterial()EffectMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...
来源: Laya2.0_api 发布时间: 20190513
... test ,但是没反应。 代码如下:private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", ...
来源: Laya_社区 发布时间: 20180407
...turns GraphicsAni Accessors cmds get cmds(): any[] set cmds(value: any[]): void Inherited from Graphics.cmds Defined in laya/display/Graphics.ts:151 命令流。存储了所有绘制命令。 Returns any[] Inherited from Graphics.cmds Defined in laya/display/Graphics.ts:155 命令流。存储了所...
来源: Laya3.0_api 发布时间: 20231115
...oolean[override] ShurikenParticleSystem addNewParticlesToVertexBuffer():voidShurikenParticleSystem addParticle(position:Vector3, direction:Vector3, time:Number):BooleanShurikenParticleSystem clone():* 克隆。 ShurikenParticleSystem cloneTo(destObject:*):void 克隆。 ShurikenParticleS...
来源: Laya2.0_api 发布时间: 20190513