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

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

891. MovieClip的target和currentTarget属性为undefined? [ 68%]

...){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这样的,但是COMPLE...

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

892. 程序蓝图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...图12-3所示。 (图12-3) 3.4 事件 需要在@bpClass标签中加入events,示例代码如下所示: const { bpClass, bpFunction } = BP; @bpClass({ name: "TestEvents", extends: "Sprite", construct: { params: [ { "name": "eee", "type": "string" } ] }, events: [{ name: "onTest", params: [{ n...

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

893. request failed status:0 text: IOS HttpRequest [ 68%]

... text:  dome 如下 ( IOS 浏览器 和 火狐浏览器) 打开 直接Event.ERROR  不会进入  Event.COMPLETE 点击(点我赋值) 或者 (发送请求) 按钮 模拟器成功 火狐或者ios 浏览器失败 附件 dome ifarmLayaT.zip   附件 : --> 2017-06-20 1 条评论 免费帖...

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

894. laya.d3.core.material.EffectMaterial_API3.0 [ 68%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

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

895. laya.d3.core.trail.TrailMaterial_API3.0 [ 68%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

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

896. Laya RigidAnimations [ 68%]

...yName' of undefined at RigidAnimations.__proto._init (laya.d3.js:27913) at EventHandler.__proto.runWith (laya.core.js:674) at AnimationTemplet.__proto.event (laya.core.js:458) at AnimationTemplet.__proto._endLoaded (laya.ani.js:3154) at AnimationTemplet.__proto.onAsynLoaded (laya.ani.js:3186) at Res...

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

897. laya.d3.core.material.SkyBoxMaterial_API3.0 [ 68%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

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

898. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 68%]

...dmc_skycity_attack1/.lh"));                     effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){                         var particle = effect.getChildAt(0).getChildAt(0).particleSystem;                         particle.on(Laya.Event.COMPLETE, this, functi...

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

899. 关于mouseThough=true的问题 [ 68%]

...onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图片我传到附件里面 shiyang • 2018-03-14 15:55 private function onClick(e:Event):void{ trace("xxxxxxx&quot...

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

900. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 68%]

...tp = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传...

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