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

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

641. 为什么显示不了 [ 73%]

...s.mouse_x,this.mouse_y+100); sps.graphics.drawTexture(texture); Laya.stage.addChild(sps);   代码有什么问题吗   为什么舞台没有显示   2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 w1...

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

642. 播放视频只有声音没有图像 [ 73%]

...w Laya.Sprite(); reference.pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-2...

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

643. 对话框点击空白处无法关闭 [ 73%]

...SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());然后我使用下面的代码来弹出对话框 var dialog = new SelectColorDialog(); dialog.show();...

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

644. HTMLDIVElement设置innerHTML时报错 [ 72%]

...os(500, 300); html.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在新版中改变了laya.html.js的HTMLDivElement中width的set方法 之前的版本中,set方法为/** *获取对象的宽 */ __getse...

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

645. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 72%]

....drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } } } ``` 编译运行效果如图2所示: ![图2](img/2.jpg)(图2) ### 2.2 创建一个圆形的遮罩区域 用代码创建一个圆形的遮罩区域。通过mask属性,即可实现遮罩效果。继...

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

646. 2.0.1beta ctx.getImageData is not a function [ 72%]

...criptErrorn.sort is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function 3Ddemo加载Unity导出场景报错resou._removeReference is not a function 问题状态 最新...

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

647. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 72%]

...s.progressBar.changeHandler = new Handler(this, this.onChange); Laya.stage.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); } private changeValue(): void { if (this.progressBar.value >= 1) this.progressBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: ...

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

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

... txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。请问谁知道为啥? 附件 : --> assets.rar 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

649. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 72%]

...", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.loadImage(url, 0, 0, 1...

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

650. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 72%]

...mage:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image);     附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你在报错的地方...

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