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

大约有 333 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0056 秒)

201. 微信小游戏适配问题 [ 52%]

...全屏铺满的需求,可以通过将背景图的top、bottom、leftright属性设置为0,就可以铺满全屏了。   2018-07-13 0 0 分享 微博 QZONE 微信 yoahuili 赞同来自: 小庆庆 官方对这个问题不作为 LAYA所有适配模式对小游戏都是错的,只能自己写...

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

202. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 52%]

...。 | | align | 文本的水平对齐方式。可选值有left、center、right。 | | valign | 文本的垂直对齐方式。可选值有top、middle、bottom。 | | color | 文本的颜色值。默认为黑色。 | | bgColor | 文本背景颜色。 | | font | 文本的字体名称。 | | fontSize ...

来源: Laya2.0_文档 发布时间: 20210715

203. laya.ui.View [ 51%]

...轴心点会影响对象位置,缩放中心,旋转中心。Sprite  right : Number 从组件右边到其内容区域右边之间的水平距离(以像素为单位)。 View root : Sprite[static] [read-only] 获取场景根容器Scene rotation : Number旋转角度,默认值为0。以角...

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

204. laya.ui.HBox_API3.0 [ 51%]

...is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive _setHeight addChild addChildAt add...

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

205. 屏幕适配怎样实现铺满全屏,又不被拉伸? [ 50%]

...:   第一步:所有的界面元素在IDE已设置好up/bottom/left/right/centerX/centerY以及layoutEnabled属性   第二步、PC使用showall,手机使用fixedwidth模式,就是下面的custom模式,这个模式是我自己有小改动(只是设置了canvas尺寸与屏幕尺寸始...

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

206. layabox怎样实现相对布局? [ 50%]

...鸟 • 2018-05-23 17:28 @Laya_Aaron:这个是用来控制top,bottom,left,right的吧,默认是开启的。更复杂的适配布局我估计只能在代码里做调整了 Laya_Aaron • 2018-05-23 17:28 @苍蝇也是鸟:那就只能是代码里调整了 苍蝇也是鸟 • 2018-05-23 17:28 @Laya_A...

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

207. laya.ui.UIComponent [ 50%]

...轴心点会影响对象位置,缩放中心,旋转中心。Sprite  right : Number 从组件右边到其内容区域右边之间的水平距离(以像素为单位)。 UIComponent rotation : Number旋转角度,默认值为0。以角度为单位。Sprite  scaleX : Number[override] X轴...

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

208. laya.ui.WXOpenDataViewer_API3.0 [ 50%]

...is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache tag texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addC...

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

209. laya.ui.Component [ 50%]

...轴心点会影响对象位置,缩放中心,旋转中心。Sprite  right : Number 从组件右边到其内容区域右边之间的水平距离(以像素为单位)。 Component rotation : Number旋转角度,默认值为0。以角度为单位。Sprite  scaleX : Number[override] X轴缩...

来源: laya_api 发布时间: 20170929

210. 竖屏游戏实现背景缩放铺满全屏,UI相对高度等比较缩放,UI位置始终按照竖屏比例显示在屏幕中间 [ 49%]

...都设置为1334*750,然后设置给UI页面设置相对布局(leftrighttop,bottom),最后在代码中设置适配模式SCALE_FIXED_WIDTH !

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