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

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

371. 全屏请求问题!!!求救啊!!求救啊!! [ 52%]

... this.fullScreen_btn.on(Laya.Event.CLICK, this, this.onFullScreen, null); _proto.onFullScreen = function () { toggleFullscreen(); };       function launchIntoFullscreen(element) { var element = document.documentElement; if (element.requestFullscreen) { element.requestFullscreen(); } else if (el...

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

372. IDE2.7.1打开项目报错、社区手机号登陆一直刷新页面 [ 52%]

...Error: Cannot read property 'addChild' of null     at IFrameRenderItem.__proto.show (file:///D:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:26665:27)   二、社区手机号不能登陆 日志在附件“bug.rar”里,清了缓存用微信扫一扫倒是可以登 部分日...

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

373. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 52%]

... one.   翻看源码后发现有这么一段判断单例组件的限制 __proto.addComponentIntance=function(comp){         if (comp.owner)             throw "Node:the component has belong to other node.";         if (comp.isSingleton && this.getComponent((comp)....

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

374. 如何彻底关闭开放域排行榜 [ 52%]

...情况都卡了。 以下是关闭排行榜的代码://移除排行榜 _proto.closeCloudStorage = function () { if (LayaSample.refract && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) ...

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

375. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 52%]

...码,提示 Uncaught TypeError: handler.run is not a function at Tween.__proto.complete (laya.core.js:9423) 9423 :handler && handler.run(); 你们自己试试吧。。为啥要。&&run() 2017-11-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

376. laya.ui里的tag不能赋值使用? [ 52%]

...terbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费帖 --> 分享 微博 QZ...

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

377. IDE新建2D示例,Sprite值狂飙,Console提示 EXT:webgl support OES_vertex_array_object [ 51%]

...狂飙,哪怕是新建的示例项目。。。 laya.debugtools.js中的__proto.render有一句: Stat.spriteCount++;这令Sprite每秒涨几百上千的,也没有对应的--,不知道是啥意思。。。 2019-04-28 0 1 分享 微博 QZONE 微信 O古O冬 赞同来自: 有没有官方的说...

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

378. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 51%]

...有关于Skeleton动画的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=i...

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

379. 【解决】富文本html下划线换行bug [ 51%]

...装备道具等需求。   修改2.0版本 laya.html.js库里的代码__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color...

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

380. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 51%]

...ngMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 var allLights = []; allLights = allLights.concat(scene._directionLights._elements); allL...

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