大约有 125 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...,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
scrollRect问题 场景移动使用scrollRect方式,设置Rectangle的x,y坐标,在浏览器下正常,在app端显示不了,只能改成直接设置层的x,y坐标,不能使用Rectangle 用的最新版本 2018-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180225
...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
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
... 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
...0时,高度为自适应大小。 ComboBox hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hi...
来源: laya_api 发布时间: 20170929
...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
...为0时,高度为自适应大小。 Label hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hi...
来源: Laya2.0_api 发布时间: 20190513
...变后才重新计算,但是如下使用时,会发生错误 var rect:Rectangle = rcurDs.getGraphicBounds(true) rect.x -= rcurDs.pivotX; rect.y -= rcurDs.pivotY; 引用值被改变了 再次使用 getGraphicBounds 时 是个错误的值 2017-11-09 添加评论 免...
来源: Laya_社区 发布时间: 20171109
...示对象图像的实际高度。 ComboBox hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hit...
来源: Laya2.0_api 发布时间: 20190513