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

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

1. laya.ui.Label_API3.0 [ 100%]

...控制 label 对象的显示位置。 label.width = 300;//设置 label宽度label.height = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到我心里话。");//创建一个...

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

2. laya.ui.TextInput_API3.0 [ 93%]

...Input 对象的显示位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efef...

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

3. laya.ui.TextArea_API3.0 [ 93%]

...extArea 对象的显示位置。 textArea.width = 300;//设置 textArea 的宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgCol...

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

4. laya.ui.Tree_API3.0 [ 88%]

...于控制 tree 对象的显示位置。 tree.width = 200;//设置 tree 的宽度。 tree.height = 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...

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

5. laya.ui.List_API3.0 [ 81%]

...";//设置 label 的name属性值。 label.size(100, 20);//设置 label宽度、高度。 this.addChild(label);//将 label 添加到显示列表。 }; Laya.class(Item,"mypackage.listExample.Item",_super);//注册类 Item 。 })(laya.ui.Box); Laya.init(640, 800);//设置游戏画布宽高、渲...

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

6. laya.ui.CheckBox_API3.0 [ 78%]

...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...

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

7. laya.ui.Button_API3.0 [ 77%]

...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...

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

8. laya.physics.BoxCollider_API3.0 [ 77%]

...width(value: number): void Defined in laya/physics/BoxCollider.ts:71 矩形宽度 Returns number Defined in laya/physics/BoxCollider.ts:75 矩形宽度 Parameters value: number Returns void x get x(): number set x(value: number): void Defined in laya/physics/BoxCollider.ts:51 相对节点的x轴偏...

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

9. laya.ui.Radio_API3.0 [ 76%]

...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...

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

10. laya.ui.RadioGroup_API3.0 [ 75%]

...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...

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