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

大约有 270 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

91. TimeLine调用destroy报错&执行完成后回到起点 [ 70%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this...

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

92. MovieClip 报错 7 [ 70%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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

93. touches一直为undefined [ 70%]

touches一直为undefined Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); ......   function onCtrlMoveRockerTouchDown(e) {     console.log("onCtrlMoveRockerTouchDown()");     var touches = e.touches;     if(touches) {     ...取出前两个touch进行计算     } }...

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

94. 对象监听另外一个脚本的执行方法不被执行 [ 70%]

...钮的监听 //下拉菜单信息按钮监听 this.AllTitleButton.on(Laya.Event.MOUSE_DOWN, this, ButtonClickManager.clickinstance.AllTitleButtonClick);   而在另外的一个单例脚本中单例分离了执行方法 因为按钮监听太多 需要分离 监听和执行 /** * 基础信息按钮...

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

95. 关于3d场景上Button点击事件顺序问题 [ 70%]

...按钮button。 2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e....

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

96. TypeError: Cannot read property 'length' of null [ 70%]

...window.conch.setFontFaceFromBuffer is not a function Cannot read property 'events' of undefined TypeError: Laya.MovieClip is not a constructor 问题状态 最新活动: 2020-03-10 09:40 浏览: 1595 关注: 2 人 Ame • 2020-03-10 15:54 我在第一个场景设置了autoDestroyAt=true,跳转到第...

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

97. unity 带出报错~ArgumentException: Invalid path [ 70%]

...ockArea.cs:341) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:298) UnityEngine.UIElements.IMG...

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

98. 关于UI与3D场景的问题 [ 69%]

...相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,...

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

99. TiledMap加载失败的问题 [ 69%]

...e:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.tiledmap.js:165:20) at EventHandler.__proto.runWith (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:670:60) at Loader.__proto.event (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:450:29) at Loader.__proto.endLoad (f...

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

100. spine适配版微信开发者平台报错 [ 69%]

...ineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); }加载方式用的官方案例,本地跑是没问题的 2021-12-07 0 0 分享 微博 QZONE 微信 northTg 赞同来自: 有...

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