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

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

201. LayaRender问题 Matter在LayaRender下出现不正常问题 [ 67%]

...ngine); LayaRender.run(render); World.add(engine.world, [ Bodies.rectangle(200, 150, 500, 20, { isStatic: true, angle: Math.PI * 0.06 }), Bodies.rectangle(500, 350, 1650, 20, { isStatic: true, angle: -Math.PI * 0.06 }), Bodies.rectangle(300, 560, 1600, 20, { isStatic: true, angle: Math.PI * 0.04 }) ...

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

202. 三个图好像无法绑定不同的事件? [ 67%]

...2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图2']); var img3 = new Laya.Sprite(); img3.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.p...

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

203. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 67%]

...源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图片资源,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img....

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

204. HTMLIframeElement报错 [ 66%]

...w HTMLIframeElement(); Laya.stage.addChild(p); p.href = "test.html"; p.y = 200; 一执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFromString(value,'text/xml'); if (rst.firs...

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

205. QQ玩一玩 获取头像后的数据是 BK.Buffer,需要如何用laya的Image显示出来? [ 66%]

...eight); var tex = new BK.Texture(buff,width,height); var sp =new BK.Sprite(200,200,tex,0,1,1,1); BK.Director.root.addChild(sp); }else if(openID == openID2){ ... } } BK.MQQ.Account.getHead(openID1, callback); BK.MQQ.Account.getHead(openID2, callback);  ===============================================...

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

206. startDrag问题,提示参数和错误检查不一致,且惯性阻尼无效 [ 65%]

...错误检查不一致,且惯性阻尼无效 startDrag(dragRegion,true,50,200,null,true,0.2)  有惯性,但是无阻尼  无阻尼! 附件 : --> LayaProject.rar 2023-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

207. Sprite-新手引导 [ 65%]

...= [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 }]; var guideStep = 0; var hitA...

来源: Laya_示例 发布时间: 20240930

208. List组件拖动浏览时item会出现重叠的现象 [ 65%]

...筋操作:回弹时间及弹性距离 list.scrollBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项为对应图片的路径 var data: Array<string> = []; for (var i: number = 0; i < 2; ++i) { data.push("img_common_pinzhi0.png"); da...

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

209. Sprite-新手引导 [ 65%]

...ideSteps = [ { x: 151, y: 575, radius:150, tip:"res/guide/help6.png", tipx:200, tipy:250 }, { x: 883, y: 620, radius:100, tip:"res/guide/help4.png", tipx:730, tipy:380 }, { x: 1128, y: 583, radius:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ], gameContainer, guideContainer, maskArea, intera...

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

210. Sprite-显示图片 [ 65%]

...te(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); } } } new laya.Sprite_DisplayImage();package { import laya.display.Sprite; import laya.display.Stage; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; ...

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