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

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

1. 如何将stage背景设置透明 [ 100%]

...value)._color; } else { _wgColor = null; } }   if (value) { Render.canvas.style.background = value; } else { Render.canvas.style.background = "none"; } } 但要如何用呀,试过 Laya.stage.bgColor = null; Laya.stage.bgColor = "null"; 都没效果   2018-06-07 添加评论 免费帖 --> 分享 ...

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

2. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 99%]

对游戏中各种控件字体样式使用“白鹭style”样式表 1.首先定义一个字体样式类和接口。 字体样式接口。 ITextFormat.ts/** * @User: liuliqianxiao * @Date: 2017/12/25 * @Time: 下午3:07 * @Desc: 这家伙很懒,什么都没留下…… **/ interface ITextFormat {...

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

3. Layabox web 复制一段文字到剪贴板 [ 95%]

...firmBtn); } this.newMask = document.createElement("div");  this.modlueDiv.style.visibility = "visible";  var clipboard = new ClipboardJS("#confirm", { text: function () { return str; } })  clipboard.on("success", function (e) { console.log("ok:") console.log(e) clipboard.destroy(); }) clipboard.o...

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

4. 2.3.0beta 各种bug [ 95%]

...rect[1], dt_w, dt_h)) : (ctx.getImageData(0, 0,dt_w, dt_h));   vivo下 getStyle 有时候莫名空 13518行 getStyle() {             this._style === SpriteStyle.EMPTY && (this._style = SpriteStyle.create());             if( this._style == null){                 this._...

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

5. 'releaseTexture' of null [ 88%]

...加载图片,啥执行到了这里。 莫名其妙的报错,this.getStyle()是null Error processing "launch": Error: 找不到文件: null 请设置文件配置文件属性runtimeExecutable Uncaught TypeError: Cannot read property 'load' of null 设置的UI元素运行时变null了。 多...

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

6. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 85%]

...: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span style='font-weight:bold;" + "font:24px Arial' " + "color='red' " + "href='www.baidu.com'>" + "LayaBox</span><span>欢迎你的加入</span>" Laya.stage.addChild(div);2、获取Html文本的实际内容、...

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

7. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 78%]

...可以在layanative里显示出来 但是如果是innerHtml="<span style='color: #cfd4ff;font-size: 30px'>文字</span><br/><img src='../pic.png'/><span style='color: #cfd4ff;font-size: 30px'>文字</span>" 这样的组合话,就只显示文字了,...

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

8. laya.html.dom.HTMLDivElement_API3.0 [ 76%]

...,比如:abc img:图片标签,比如: br:换行标签,比如:abcdef style:样式标签,比如:abc link:外链样式标签,可以加载一个css文件来当style使用,比如: style支持的属性如下: italic:true|false; 是否是斜体 bold:true|false; 是否是粗体 letter-spacing:10p...

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

9. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 76%]

...tw1Complete1)); 只要是设置scale值最终变0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

10. laya.html.dom.HTMLIframeElement_API3.0 [ 72%]

...votY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache style texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender...

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