大约有 426 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0110 秒)
... = Floor.prototype; _proto.init = function(){ //如果不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化的时候将坐标放到屏幕右边 this.x = 852; //y坐标取一个随机值 为什么是32 因为我们的整个素材是 32 * 20 拼起来的 this.y = ...
来源: Laya_社区 发布时间: 20160728
...t centerX(value: number): void Defined in laya/ui/UIComponent.ts:226 在父容器中,此对象的水平方向中轴线与父容器的水平方向中心线的距离(以像素为单位)。 Returns number Defined in laya/ui/UIComponent.ts:230 在父容器中,此对象的水平方向中轴线与...
来源: Laya3.0_api 发布时间: 20231115
...ly exported Menu Globals "laya/ui/Box" Box Class Box Box 类是一个控件容器类。 Hierarchy UIComponent Box List LayoutBox Panel UIGroup ScaleBox Tree ViewStack Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag dr...
来源: Laya3.0_api 发布时间: 20231115
...,为什么不显示? 微信小游戏如何使用ttf字体? 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元...
来源: Laya_社区 发布时间: 20180412
...;否则不自动换行。 Text x : Number表示显示对象相对于父容器的水平方向坐标值。Sprite y : Number表示显示对象相对于父容器的垂直方向坐标值。Sprite zOrder : Numberz排序,更改此值,则会按照值的大小对同一容器的所有对象重新排...
来源: Laya2.0_api 发布时间: 20190513
...als "laya/ui/LayoutBox" LayoutBox Class LayoutBox LayoutBox 是一个布局容器类。 Hierarchy Box LayoutBox HBox VBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSe...
来源: Laya3.0_api 发布时间: 20231115
... 找不到类的定义!这是为什么? 已上传 Demo 附件 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? 如何设置Sprite的宽高和点击区域? laya2的Scene默认是文件模式,不会生成场景...
来源: Laya_社区 发布时间: 20161216
...rited from UIComponent.centerX Defined in laya/ui/UIComponent.ts:226 在父容器中,此对象的水平方向中轴线与父容器的水平方向中心线的距离(以像素为单位)。 Returns number Inherited from UIComponent.centerX Defined in laya/ui/UIComponent.ts:230 在父容器中,...
来源: Laya3.0_api 发布时间: 20231115
...rted Menu Globals "laya/ui/VBox" VBox Class VBox VBox 是一个垂直布局容器类。 Hierarchy LayoutBox VBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior isSortItem mouseThrough name tag CENTER LEFT NONE RIGHT drawtocanvCtx Accessor...
来源: Laya3.0_api 发布时间: 20231115
...rted Menu Globals "laya/ui/HBox" HBox Class HBox HBox 是一个水平布局容器类。 Hierarchy LayoutBox HBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag BOTTOM MIDDLE NONE TOP drawtocanvCtx Accessors _isHeight...
来源: Laya3.0_api 发布时间: 20231115