大约有 41 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0069 秒)
...控制 label 对象的显示位置。 label.width = 300;//设置 label 的宽度。 label.height = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到我心里话。");//创建一个...
来源: Laya3.0_api 发布时间: 20231115
...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
...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
...于控制 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
...";//设置 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
...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
...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
...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
...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
...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