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

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

201. LayaAirIDE的可视化2D物理编辑入门(TypeScript-IDE篇(TS)-使用2d物理系统) [ 26%]

...件的基类 Component。在LayaAirIDE中,我们可以直接为UI组件添加刚体组件。如下图1所示。 ![图1](img/1.png) (图1) ##### 刚体类型 `type` 基于理论力学的理论基础,box2D物理引擎的刚体类型(type)分为:静力学类型`static`、动力学类型`dynamic`...

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

202. laya.ui.HBox_API3.0 [ 26%]

...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。 Returns number Inherited from Text.zOrder Defined in laya/display/Sprite.ts:1833 z排序,更改此值,则会按照值的大小对同一容器的所有对象重新排序。值越大,越靠上。默认...

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

203. laya.ui.UIGroup_API3.0 [ 26%]

...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。 Returns number Inherited from Text.zOrder Defined in laya/display/Sprite.ts:1833 z排序,更改此值,则会按照值的大小对同一容器的所有对象重新排序。值越大,越靠上。默认...

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

204. laya.ui.TextInput_API3.0 [ 26%]

...置 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

205. laya.ui.TextArea_API3.0 [ 26%]

.../设置 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

206. laya.ui.Tree_API3.0 [ 26%]

...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

207. laya.display.Input [ 26%]

...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By _fontFamilyMap : Object[static] 存在于这个映射表中的字体,在IPhone上,...

来源: laya_api 发布时间: 20170929

208. laya.display.Text [ 25%]

...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties PropertyDefined By  _fontFamilyMap : Object[static] 存在于这个映射表中的字体,在IPhone上,会变成 字体-简|繁 这个字体列表不包含全部可能的字...

来源: laya_api 发布时间: 20170929

209. laya.display.Text [ 25%]

...默认会把 "黑体" 映射为 "黑体-简",更多映射,可以添加Text  fontSize : int 指定文本的字体大小(以像素为单位)。 默认为20像素,可以通过 Text.defaultFontSize 设置默认大小。 Text globalRotation : Number[read-only] 获得相对于stage的...

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

210. laya.ui.Dialog_API3.0 [ 21%]

...度。 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