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

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

31. 显示对象的mask缩放为0时遮罩效果不生效 [ 79%]

...没有生效 Laya.init(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tm...

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

32. 微信小游戏,截屏和开放域不能共存 [ 79%]

...是layaair2.1.0beta,截屏接口使用的是 drawToCanvas(this.basePanel.width, this.basePanel.height, this.basePanel.x, this.basePanel.y).toBase64("image/png", 0.9, function(base64) 请问这个怎么解决,谢谢啦 2019-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

33. TypeError: relativePath is undefined [ 78%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http:...

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

34. 官方案例里摄像机绕物体旋转脚本的问题 [ 76%]

.... /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width: number; /// <summary> /// Length of area. /// </summary> public length: number; /// <summary> /// Constructor. /// </summary> /// <param name="cente...

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

35. drawTextures BUG [ 75%]

...his._inner_drawTexture(tex, bmpid, pos[ipos++] + tx, pos[ipos++] + ty, tex.width, tex.height, null, null, 1.0, false);   附件 : --> 2022-06-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_z 赞同来自:...

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

36. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 73%]

...据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.sc...

来源: Laya2.0_文档 发布时间: 20210715

37. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 72%]

...' /> <title>XXXXX</title> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no' /> <meta name="renderer" content="webkit" /> <meta name='apple-mobile-web-app-capable' content='yes' /> <meta name='...

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

38. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 72%]

...  spe.x = 100;             spe.y = 100;             spe.width = 512;             spe.height = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");  ...

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

39. 我想问下如果要调用手机本地相册,能不能用HTMLDivElement?该怎么用 [ 71%]

...ile" /> <span>上传文件</span> </label> <canvas width="300" height="300" id="canvas"></canvas> </body> <script> $("#file").change(function (){ var file = new FileReader();//读取文件2进制 file.onload = function(e){ var base64 = e.target.result; va...

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

40. 3D基础显示对象 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...建Box网格。 * @param long 半径 * @param height 垂直层数 * @param width 水平层数 * @return */ static createBox(long: number = 1, height: number = 1, width: number = 1): Mesh 可以看到,通过 createBox 方法,可以创建Box网格,而且还可以创建不同的垂直和水平高...

来源: Laya3.0_文档 发布时间: 20251010