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

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

1021. skin 大于512 的释放问题 [ 79%]

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

1022. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 79%]

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

1023. 计时器-延迟调用 [ 79%]

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

1024. 弹窗视图组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 79%]

...gClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () =&gt; { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始场景Scene...

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

1025. 怎么加载网络上的图片 [ 79%]

...ndler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 请问LayaAir中如何使图片以圆形的方式显示? 加载到舞台...

来源: Laya_社区 发布时间: 20170220

1026. laya.d3.core.trail.TrailMaterial [ 79%]

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

1027. laya.d3.core.material.EffectMaterial [ 79%]

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

1028. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 79%]

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

1029. laya.ani.GraphicsAni_API3.0 [ 78%]

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

1030. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 78%]

...oolean[override] ShurikenParticleSystem  addNewParticlesToVertexBuffer():voidShurikenParticleSystem  addParticle(position:Vector3, direction:Vector3, time:Number):BooleanShurikenParticleSystem  clone():* 克隆。 ShurikenParticleSystem  cloneTo(destObject:*):void 克隆。 ShurikenParticleS...

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