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

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

41. DialogManager怎么添加遮罩层 [ 84%]

...anager怎么添加遮罩层   var dialogManager =new DialogManager(); var sprite1=new Laya.Sprite(); sprite1.loadImage("scdlb/首充大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dia...

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

42. 能通过不规则热区来实现物体的碰撞检测吗? [ 84%]

...以,你参考下这个方法:https://ask.layabox.com/question/1261 var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graph...

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

43. [LayaAir3]UI3D 显示多个sprite,上面显示的sprite加mask以后,下面的sprite显示不出来 [ 84%]

[LayaAir3]UI3D 显示多个sprite,上面显示的sprite加mask以后,下面的sprite显示不出来 附件 : --> 2024-04-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你提供一个...

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

44. 为什么动态给sprite添加dynamic刚体后背景图像会向上位移? [ 84%]

为什么动态给sprite添加dynamic刚体后背景图像会向上位移? 我给一个带有矢量背景的sprite动态添加dynamic刚体后整个矢量背景都会向上移动,如果将刚体的type换成static就不会有这种情况,请问这是为什么呢?代码如下:  下图二...

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

45. WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 [ 84%]

WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 使用Sprite作为背景,且用一张小图fillTexture填充显示,当背景移动时,会显示间隔线且会不停闪烁  this.mapBg = new Laya.Sprite(); this.mapBg.name = "map"; this.mapBg...

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

46. Sprite缩放图片后 Matter的layaSprite显示不正常 不缩放就正常 [ 84%]

Sprite缩放图片后 Matter的layaSprite显示不正常 不缩放就正常  Sprite缩放图片后 Matter的layaSprite显示不正常 不缩放就显示正常 代码   效果可以看到 图片分离了 固定在那不动   附件 : --> 2017-07-28 添加评论 免费帖 --> 分享 微博 QZONE ...

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

47. sprite添加click监听事件反应迟钝 [ 84%]

sprite添加click监听事件反应迟钝 代码如下,如果用drawyuan.graphics.drawCircle(0,0,50,"#232628");则会点击反应非常迟钝,如果用loadimg的话,反应很快; function drawCirle() { var drawyuan = new Laya.Sprite(); // drawyuan.graphics.drawCircle(0,0,50,"#232628");//反...

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

48. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 83%]

Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? (function () { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL;  var red; var guideContainer; var tipContainer;  var hitArea; var interactionArea;  (function () { ...

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

49. 如何添加对象到DialogManager层以上 [ 83%]

如何添加对象到DialogManager层以上 例如我 Laya.stage.addChild(Sprite) 一个显示对象。但是dialogmanager自己有层级交换,一会儿刚addChild的Sprite就到dialogManager下一层了 有什么办法解决吗 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

50. 为什么hitTestPoint始终是false? [ 83%]

为什么hitTestPoint始终是false? class TestUI extends Laya.Sprite { private s:Laya.Sprite = new Laya.Sprite(); constructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } priv...

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