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

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

1011. runtime运行报错! [ 66%]

...e]):View.uiClassMap[json.type];      return compClass ? new compClass():null;  } 这第2句代码貌似不正常啊?改成下面的样子试试:       var compClass=(View.viewClassMap[runtime] || Laya["__classmap"][runtime])?runtime:View.uiClassMap[json.type];   改完一切正常.   ...

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

1012. 背景音乐播放内存问题 [ 66%]

...d { delete _dataCache[url]; delete __loadingSound[url]; this.audioBuffer = null; this.data = null; this.__toPlays = []; super.dispose(); }   如果不添加最后4行代码的话,每次切换回来内存就都会上涨了,现在是只有第一次上涨,之后就不会了 2018-02-05 0 0 分享...

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

1013. Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 [ 66%]

...e / 2,  this.DrawControl.radius.value, this.DrawControl.radius.value, null, 1, color, null);                     } 附件 : --> 2020-11-03 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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

1014. [LayaAir2]iOS设备,抖音app报错 requestAnimationFrame [ 66%]

...ion() __lookupGetter__: function() __lookupSetter__: function() __proto__: null constructor: function() hasOwnProperty: function() isPrototypeOf: function() propertyIsEnumerable: function() toLocaleString: function() toString: function() valueOf: function() __proto__: null 附件 : --> 2024-03-05 1 ...

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

1015. 鼠标交互-双指旋转(多点触控) [ 66%]

...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onM...

来源: Laya2.0_示例 发布时间: 20251219

1016. UI-ColorPicker [ 66%]

... onColorPickerSkinLoaded)); } private function onColorPickerSkinLoaded(e:*=null):void { var colorPicker:ColorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Handler(this, onChangeColor, [colorPicke...

来源: Laya2.0_示例 发布时间: 20251219

1017. 粒子编辑器报错 [ 66%]

...截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27) at ParticleScene.__proto.show (file:...

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

1018. 骨骼动画-Spine事件 [ 65%]

..., "#ff0000", "center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet;...

来源: Laya2.0_示例 发布时间: 20251219

1019. Laya.loader.load 教程代码出错 [ 65%]

...ed));         }         private function LoadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnImgClick);             OnImgClick();                          va...

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

1020. 粒子编辑器报错 [ 65%]

...截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27) at ParticleScene.__proto.show (file:...

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