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

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

11. scrollRect 改变后子对象的鼠标事件失效 [ 84%]

...,300); poly.on("mousedown", this, polyonMouseDown); bg.scrollRect=new Laya.Rectangle(100,100,700,500); bg.scale(1.5,1.5); ----------------------------------------------------------------------------- 加上这句bg.scrollRect=new Laya.Rectangle(100,100,700,500); 子对象的鼠标事件失效了 201...

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

12. scrollRect问题 [ 83%]

scrollRect问题 场景移动使用scrollRect方式,设置Rectangle的x,y坐标,在浏览器下正常,在app端显示不了,只能改成直接设置层的x,y坐标,不能使用Rectangle 用的最新版本 2018-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

13. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 82%]

...yer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(...

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

14. laya.ui.ColorPicker_API3.0 [ 81%]

...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...

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

15. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 81%]

... laya.events.Event; import laya.html.dom.HTMLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.draw...

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

16. laya.ui.ComboBox [ 81%]

...0时,高度为自适应大小。 ComboBox hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hi...

来源: laya_api 发布时间: 20170929

17. TiledMap地图下显示问题 [ 81%]

...iledMap.createMap("../laya/assets/map/orthogonal-test-movelayer.json", new Rectangle(0, 0, 5000, 5000),new Laya.Handler(this,this.finishLoadMap));     Rectangle设置太小,分开加载了,加载会从下开始加载,导致上面的会盖上去 2018-03-26 0 0 分享 微博 QZONE 微信 qian ...

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

18. laya.ui.Label [ 81%]

...为0时,高度为自适应大小。 Label hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hi...

来源: Laya2.0_api 发布时间: 20190513

19. getGraphicBounds() 的问题 [ 81%]

...变后才重新计算,但是如下使用时,会发生错误 var rect:Rectangle = rcurDs.getGraphicBounds(true)     rect.x -= rcurDs.pivotX;     rect.y -= rcurDs.pivotY;   引用值被改变了    再次使用  getGraphicBounds 时 是个错误的值 2017-11-09 添加评论 免...

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

20. laya.ui.ComboBox [ 80%]

...示对象图像的实际高度。 ComboBox hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hit...

来源: Laya2.0_api 发布时间: 20190513