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

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

261. 关于嵌入div [ 56%]

....width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Laya.timer.once(500,this,onLoop); Stat.show(); } private function onLoop():void { __JS__('var LayaCanvas1=document.getElementsByTagName("canvas")[0]'); __JS__('var LayaCanvas2=document.getElementsByTagName("canvas")[1]'); __JS__('var La...

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

262. 无法对载入的材质操作。sharedMaterials的length为0 [ 56%]

...是空的  2.你加载的方式不对, antaShoes.meshFilter.sharedMesh.once(Event.LOADED,this,function(){})     你那个回调事件,是场景加载完成的回调事件。      2017-03-14 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

263. 小图集内存较大,且不能清理掉 [ 56%]

...g.drawTexture(tex, 0, 0); _s.graphics = g;        Laya.timer.once(2000, this, onClear); } private function onClear():void { _s.graphics.clear(); _s.destroy(true); _s.removeSelf(); _s=null;      console.log(Laya.loader.getRes(_url)); Loader.clearRes(_url,true); console.log(L...

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

264. 安卓机截图变成黑块,ios和pc没问题 [ 56%]

...0"); var htmlCanvas:HTMLCanvas = sp1.drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlCanvas); var sp2:Sprite = new Sprite(); sp2.graphics.drawTexture(texture); Laya.stage.addChild(sp2); }); } 附件 : --> 2018-11-21 添加评论 免费帖 -...

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

265. 如何在代码中new Poly [ 56%]

...on, 0); this.homeScaleFilterImgList.push(this.imgExpedition);  Laya.timer.once(2000, this, () => {  let dd: Laya.HitArea = new Laya.HitArea(); this.imgExpedition.hitArea = dd; dd.hit.drawRect(174, 123, 210, 230, "#000000"); dd.unHit.clear(); dd.unHit.drawRect(0, 0, 174, 123, "#000000"); }) 2018...

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

266. Button点击函数逻辑bug [ 56%]

...ted); if(this._clickHandler){ var handler = this._clickHandler; if(handler.once){ this._clickHandler = null; } handler.run(); } return; } !this._selected && (this.state=Button.stateMap[e.type]); } 附件 : --> 2019-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

267. Laya.Scene.open 在弹窗情况下,参数滞后了 [ 56%]

...无法关闭 怎样获取浏览器地址传过来的GET参数 http 请求 once 的 回调参数,如何传递和接收? laya 发布成微信小游戏 怎么获取从分享中进入的参数 请问下自定义时间怎么获取发送时的参数 as3中如何定义html中的id参数 IDE中js压缩...

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

268. Object.defineProperty is not a function [ 56%]

...der_Canvas.ctx.fillAndStrokeText is not a function Uncaught TypeError: tex.once is not a function api readFile success callback function undefined 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is n...

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

269. [LayaAirIDE3]Shader蓝图参数命名冲突 [ 56%]

...透明的shader显示阴影? 对象池对类怎么传参数 http 请求 once 的 回调参数,如何传递和接收? IDE全局键盘快捷键冲突 问题状态 最新活动: 2024-03-29 16:49 浏览: 6284 关注: 3 人 Heured • 2024-03-26 23:16 重新试了一下,才发现可以重新编...

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

270. HttpRequest如何发送JSON数据 [ 56%]

...      var logReq = new laya.net.HttpRequest();         logReq.once(Laya.Event.COMPLETE,this,this.onComplete);         logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'",         'post', "json", null); 服务端无法获取数据 2017-09-06 4 条...

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