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

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

1411. 开启视网膜画布(useRetinalCanvas)后,在iphone6 plus 等设备像素比大于1 的设备上截图不完整 [ 52%]

...Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);         let base64Img                   = htmlCanvas.toBase64("image/png", 0.8); 而 关闭视网膜屏幕或者在屏幕像素比为1的设备上正常 附件 : --> 2020-10-19 ...

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

1412. 要让2DUI跟随3D物件,比如说敌人头上有血条。请问要怎么做? [ 52%]

...out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui   //3d坐标转2d屏幕坐标     /**      *       * @param {*} point 3d世界坐标      * @param {*} camera 摄像机    ...

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

1413. 3D文本纹理demo问题 [ 52%]

...ion             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                    TypeError: this.cxt.fillText is not a function     at TextureManager.getWebCharBmp (http://192.168.101...

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

1414. 代码和ide编辑器添加遮罩浏览器警告 [ 52%]

..."#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048,cache ig...

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

1415. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 52%]

...fff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自...

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

1416. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 52%]

...t = new Laya.Text(); txt.text = "武器坐骑角色"; txt.width = 250; txt.height = 250; txt.wordWrap = true; txt.align = "center"; txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。...

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

1417. Laya整合echarts示例(TypeScript) [ 52%]

...rowser.document.createElement("div"); div.style.width = "600px"; div.style.height = "400px"; Laya.Browser.document.body.appendChild(div); var myChart = new Laya.Browser.window.echarts.init(div); var option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: { data:['销量'] }, xAxis: ...

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

1418. LayaBox如何多点触摸? [ 52%]

..., false, 0xcccccc); var bmp:Bitmap = new Bitmap(bmd); bmp.width = 960; bmp.height = 640; var sp:Sprite = new Sprite(); sp.addChild(bmp); this.addChildAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } protected function onT...

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

1419. 升级到1.78beta版后,包编译错误 [ 52%]

...not assignable to type '(source: any, x: number, y: number, width: number, height: num ber, offsetX?: number, offsetY?: nu...'.       Types of parameters 'mipMap' and 'offsetX' are incompatible.         Type 'number' is not assignable to type 'boolean'.   2017-07-21 添加评论 免费帖 --...

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

1420. matter.js 版本升级 [ 52%]

...ontainer: gameWorld, controller: LayaRender, options: { width: stageWidth, height: stageHeight, wireframes: false } } }); 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 0.9.3版...

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