大约有 234 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0088 秒)
...件的基类 Component。在LayaAirIDE中,我们可以直接为UI组件添加刚体组件。如下图1所示。  (图1) ##### 刚体类型 `type` 基于理论力学的理论基础,box2D物理引擎的刚体类型(type)分为:静力学类型`static`、动力学类型`dynamic`...
来源: Laya2.0_文档 发布时间: 20210714
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。 Returns number Inherited from Text.zOrder Defined in laya/display/Sprite.ts:1833 z排序,更改此值,则会按照值的大小对同一容器的所有对象重新排序。值越大,越靠上。默认...
来源: Laya3.0_api 发布时间: 20231115
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。 Returns number Inherited from Text.zOrder Defined in laya/display/Sprite.ts:1833 z排序,更改此值,则会按照值的大小对同一容器的所有对象重新排序。值越大,越靠上。默认...
来源: Laya3.0_api 发布时间: 20231115
...置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], laya.utils.Handler.create(this, onL...
来源: Laya3.0_api 发布时间: 20231115
.../设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], laya.utils.Handler....
来源: Laya3.0_api 发布时间: 20231115
...ight = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; var selectBox:Clip = new Cli...
来源: Laya3.0_api 发布时间: 20231115
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By _fontFamilyMap : Object[static] 存在于这个映射表中的字体,在IPhone上,...
来源: laya_api 发布时间: 20170929
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties PropertyDefined By _fontFamilyMap : Object[static] 存在于这个映射表中的字体,在IPhone上,会变成 字体-简|繁 这个字体列表不包含全部可能的字...
来源: laya_api 发布时间: 20170929
...默认会把 "黑体" 映射为 "黑体-简",更多映射,可以自己添加Text fontSize : int 指定文本的字体大小(以像素为单位)。 默认为20像素,可以通过 Text.defaultFontSize 设置默认大小。 Text globalRotation : Number[read-only] 获得相对于stage的...
来源: Laya2.0_api 发布时间: 20190513
...度。 bg.height = 250;//设置 bg 的高度。 this.addChild(bg);//将 bg 添加到显示列表。 var image = new laya.ui.Image("resource/ui/image.png");//新建一个 Image 类的实例 image 。 this.addChild(image);//将 image 添加到显示列表。 var button = new laya.ui.Button("resource/u...
来源: Laya3.0_api 发布时间: 20231115