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

大约有 1,258 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)

861. laya图片路径问题 [ 56%]

...w Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addChild(roleAni);   这样就会报路劲错误   var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', 'img/f...

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

862. 2.0下资源加载和销毁内存问题 [ 56%]

...his.bt=new bitmapimg(url);                     this.sp.addChild(this.bt)                 }else{                     this.bt.url=url;                 }             }             this.flag=true;      ...

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

863. laya2.03使用Animation错误异常(选错版本了应该选择是layaAir2.0 bug) [ 56%]

...open打开方式出现这种异常,如果使用以前的直接laya.stage.addChild(继承ui的类实例)这种方式会出现这种异常bug 。。。。。 附件 : --> laya3.zip 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

864. Oppo加载.ls资源错误 [ 56%]

...ader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:45.923 30921-30972/? E/jswrapper: [ERROR] Failed to invoke _runtime_re...

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

865. 两个问题都关于LayaAir的ios真机 [ 56%]

...erData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPhoto.addChild(photo); gui.imgPhoto.mask=mask;载入的头像在浏览器ok,在真机构建的app上就有问题,真机上如果没mask,头像正常,如果加了mask,就显示头像,显示一个黑色的小方块 201...

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

866. laya.ui.UIComponent_API3.0 [ 56%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...

来源: Laya3.0_api 发布时间: 20231115

867. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 56%]

...g:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask = imgMask; imgMask.repaint(); } } new ...

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

868. 摄像机跟随刚体移动,刚体出现抖动。 [ 56%]

...020-05-15 01:43 浏览: 3332 关注: 9 人 彪 • 2020-04-06 10:50 小球.addChild(摄像机) 微笑着拒绝 • 2020-04-14 20:44 大佬,你这个摄像机是怎么实现跟随刚体的呢,求帮助... 时光机器 • 2019-10-20 08:48 怎么才能同步呢?放同父物体下会导致摄像头...

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

869. sharedCanvas现在在laya里面能用了吗???急 在线等 [ 56%]

...使用,非常费,每帧刷新 sp.graphics.drawTexture(canvas); layout.addChild(sp); }   /** * 清除开放域数据 */ function clearDrawOpenData(layout: Laya.Sprite) { if (layout) { layout.destroyChildren(); } }  你这报的错很可能是JSON错了 2019-03-28 0 0 分享 微博 QZONE 微信 ...

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

870. HTMLDivElement中图文混排怎么获取实际内容大小 [ 56%]

...: " + imageHtml.contextWidth + ", " + imageHtml.contextHeight); Laya.stage.addChild(imageHtml);   上述代码在Laya中运行 正确显示了 图片 控制台输出: size: 200, 200 contextSize: 0, 0   如何获取真实大小?   2017-11-18 添加评论 免费帖 --> 分享 微博 QZONE 微...

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