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

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

191. setBounds()后无法碰撞 [ 65%]

...2 11:58 @cuixueying:拿我的这个例子为例,应该实现出来和sp2.hitArea=rectangle2一样,前期我把这个框的范围确定下来,并且注册点设为正中心rectangle2 = new Rectangle(-19,-19,38,38);再调用以上代码sp2.hitArea=rectangle2;这个框就自动吸附到sp2上...

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

192. laya.display.Text [ 65%]

...Y。 可以通过getbounds获取显示对象图像的实际高度。 Text hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的...

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

193. 不规则热区的实现 [ 65%]

...如果用sprite对ape进行添加显示,请务必为sprite设置size或hitArea 【此效果,如果单纯的用sprite去创建,由于image本身包含空白区域,所以鼠标响应的区域是个Rectangle(含透明区),并非单纯的肉眼可视的显示区域,这就会出现明明...

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

194. laya.display.Stage [ 65%]

...。 可以通过getbounds获取显示对象图像的实际高度。 Stage hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的...

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

195. laya.display.Text_API3.0 [ 65%]

...ontSize globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea html htmlParseOptions is3D italic leading lines mask maxScrollX maxScrollY maxWidth mouseEnabled mouseX mouseY numChildren objContainer overflow padding parent pivotX pivotY rotation scaleX scaleY scene scrollRect scr...

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

196. laya.ui.HScrollBar_API3.0 [ 64%]

...obalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect scrollSize showButtons sizeGrid skewX skewY skin ...

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

197. laya.ui.VScrollBar_API3.0 [ 64%]

...obalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect scrollSize showButtons sizeGrid skewX skewY skin ...

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

198. laya.display.Stage_API3.0 [ 64%]

...Enabled globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D isFocused isVisibility mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleMode scaleX scaleY scene screenMode scrollRect skewX skewY stage staticCache texture timer transform url viewp...

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

199. laya.ui.Button_API3.0 [ 64%]

...rs globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D label labelAlign labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labelVAlign left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation sca...

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

200. laya.ui.CheckBox_API3.0 [ 64%]

...rs globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D label labelAlign labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labelVAlign left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation sca...

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