大约有 377 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0067 秒)
Laya_社区(160) Laya3.0_api(70) Laya2.0_api(62) laya_api(59) Laya_示例(9) Laya2.0_文档(8) Laya2.0_示例(7) Laya3.0_文档(2)
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
...有定义,但是为啥加载不到呢 var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var Sprite = Laya.Sprite; var MapLayer = Laya.MapLayer; Laya.init(800, 800); var map1 = new TiledMap(); map1.createMap("res/maps/scence1.json",new Rectangle(0,0,800, 800)...
来源: Laya_社区 发布时间: 20180326
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
...对象 tiledMap = new TiledMap(); //创建Rectangle实例,视口区域 viewRect = new Laya.Rectangle(0,0,0,0); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMap("res/a...
来源: Laya_社区 发布时间: 20180614
... * @param isDrawRenderRect A boolean indicating whether to draw the render rectangle. When true, it starts drawing from (0,0) of the render texture and subtracts the offset of the cache rectangle. When false, it keeps the sprite's original relative position for drawing. * @param flipY Optional. If t...
来源: Laya_社区 发布时间: 20250827
...0 分享 微博 QZONE 微信 mason311 赞同来自: let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); rect.hitArea = hitArea; 是这样设置吗,还是不可以呢? 2018-02-06 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 发demo 我给你看一下吧 2018-02-06 0 0 分...
来源: Laya_社区 发布时间: 20180205
...对象 tiledMap = new TiledMap(); //创建Rectangle实例,视口区域 viewRect = new Laya.Rectangle(0,0,0,0); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMap("res/a...
来源: Laya_社区 发布时间: 20180612
...ght、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height 2018-05-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 zxcmht310 相关问题 分享:自定义事件派...
来源: Laya_社区 发布时间: 20180518