大约有 125 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0062 秒)
...ayAction(action): void { this.body.play(0, true, action); var bounds: Laya.Rectangle = this.body.getBounds(); //设置机身轴心从左上角到中心 this.body.pivot(bounds.width / 2, bounds.height / 2); //设置机身居中 //this.body.pos(-bounds.width/2,-bounds.height/2); } 2018-02-06 添加...
来源: Laya_社区 发布时间: 20180206
...后并不影响显示对象大小。 Sprite hitArea : *可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hit...
来源: laya_api 发布时间: 20170422
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
...); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Laya.Rectangle = this.body.getBounds(); //this.pos(100,0); console.log(-bound.width/2 + " --- "+ -bound.height/2); } onPlayComplete():void{ } } 请问为啥bound.width bound.heigh这是0? 2018-04-27 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20180427
一个动画我想设置它的大小该怎么取设置啊 rec = new Laya.Rectangle(0,0,100,100) ani.setBounds(rec) var bounds = ani.getGraphicBounds(); ani.scale(100/bounds.width,100/bounds.height) 我想把动画宽高都设置成100 100 可是这2种方法都不能实现 该怎么去...
来源: Laya_社区 发布时间: 20170629
...要在动画播放的时候,然后通过getBound方法获取当前帧的Rectangle信息! 2017-02-28 0 1 分享 微博 QZONE 微信 Vivapercuore 赞同来自: 能更改了吗? 2017-11-11 0 0 分享 微博 QZONE 微信 157*****121 赞同来自: 缩放 2017-11-13 0 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20170228
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115
...显示对象图像的实际高度。 Panel hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hit...
来源: Laya2.0_api 发布时间: 20190513
...显示对象图像的实际高度。 Tree hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hitT...
来源: Laya2.0_api 发布时间: 20190513
...于本对象绘图区域内时,才算命中,而与对象宽高和值为Rectangle对象的hitArea属性无关。如果sprite.hitArea值是HitArea对象,表示显式声明了此对象的鼠标事件响应区域,而忽略对象的宽高、mouseThrough属性。 影响对象鼠标事件响应区...
来源: Laya3.0_api 发布时间: 20231115