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

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

1351. 在App上的iframe srcdoc属性显示不出来 [ 56%]

...tml页面,你可以试下: var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html"; p.y = 200;

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

1352. HtmlDivElement添加下划线效果不对 [ 56%]

...哈哈</span><span>欢迎你的加入</span>" Laya.stage.addChild(div); 2017-06-01 0 1 分享 微博 QZONE 微信 yurong3000 赞同来自: 雪莹,div.style.letterSpacing = 5; 第二行加上这段代码就可以复现了 2017-06-02 0 0 分享 微博 QZONE 微信 为什么被折...

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

1353. Text 居中 搭配 Tween 显示结果有问题。 [ 56%]

... txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX:2, scaleY:2, }, 1000, Laya.Ease.elasticOut,null,1000);  画布800x600,在屏幕正中间显示一行字,通过缓动放大倍数到2倍,不改变位置,结果发现缓动把位置...

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

1354. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 56%]

...         sp.texture = tex;              Laya.stage.addChild(sp)         }     } 附件 : --> 2021-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 小小泽 จุ บ 赞...

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

1355. LayaAir2.6.0版阴影系统如何使用,请教请教! [ 56%]

...光: //添加方向光         this.m_light = this.m_scene3D.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;         this.m_light.color = new Laya.Vector3(0.8, 0.8, 0.8);         this.m_light.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, ...

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

1356. TiledMap地图添加至Panel中不显示! [ 56%]

...看看, 地图的生成是按官方案列写的 添加方法如下 this.addChild(this.tiledMap.mapSprite()); 2017-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同来自: 在panel...

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

1357. 加载html的问题 [ 56%]

...载html文件: var p = new laya.html.dom.HTMLIframeElement(); Laya.stage.addChild(p); p.width = screenWidth; p.height = screenHeight; p.href = "https://www.baidu.com/index.html"; 这样写怎么报错了:gameThirdScriptError undefined;at api request success callback function undefined 说没有...

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

1358. 设置半透遮罩层后,无法屏蔽穿透点击事件 [ 56%]

..., Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: 你添加一个size大小试试 2018-09-11 ...

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

1359. 按钮交互实现 [ 56%]

...进行设置点击事件 var gameOver = new GameOverUI(); this.SceneMajor.addChild(gameOver); gameOver.btRetry.on('click', this, function(){ window.location.reload(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片...

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

1360. HtmlDIV style="text-align:center"无效,该怎么居中文字呢? [ 56%]

...同来自: var p:HTMLDivElement = new HTMLDivElement();    Laya.stage.addChild(p);    p.style.font = "Impact";    p.style.fontSize = 30;    p.style.align = "center";    var html:String = "<span color='#ffffff'>居中测试文本</span>";    p.innerHTML = html;   p.styl...

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