大约有 59 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0122 秒)
...这里可以设置 _tf _tf: Input Inherited from TextInput._tf Overrides Label._tf Defined in laya/ui/TextInput.ts:119 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoSize autoSize: boolean = false Inherited from Text.autoSize Defined in laya/display/Sprite...
来源: Laya3.0_api 发布时间: 20231115
...列表的数据信息。 for (var i:int = 0; i < 20; i++) { arr.push({label: "item" + i}); } var list:List = new List();//创建一个 List 类的实例对象 list 。 list.itemRender = Item;//设置 list 的单元格渲染器。 list.repeatX = 1;//设置 list 的水平方向单元格数量。 li...
来源: Laya3.0_api 发布时间: 20231115
...名。 Laya.loader.load("res/maobi.ttf", Loader.TTF).then(() => { var label: Label = new Label(); label.font = "maobi"; label.text = "自定义嵌入字体"; label.fontSize = 30; label.color = '#FFFFFF'; this.Main.box2D.addChild(label); label.pos(30, 50) }); Copyright ©Layabox 2026 all right res...
来源: Laya3.0_文档 发布时间: 20260128
...private hr: HttpRequest; private logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.c...
来源: Laya3.0_文档 发布时间: 20251010
...个 CheckBox 类的实例对象 checkBox ,传入它的皮肤skin和标签label。 checkBox.x = 100;//设置 checkBox 对象的属性 x 的值,用于控制 checkBox 对象的显示位置。 checkBox.y = 100;//设置 checkBox 对象的属性 y 的值,用于控制 checkBox 对象的显示位置。 ...
来源: Laya3.0_api 发布时间: 20231115
...载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 button ,并传入它的皮肤。 button.x = 100;//设置 button 对象的属性 x 的值,用于控制 button 对象的显示位置。 button.y = 100;//设置 button 对象的...
来源: Laya3.0_api 发布时间: 20231115
...any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (this._level > 1) { this._level--; this._text.text = (this._level + ""); owner.getComponent(Laya.RigidBody).setVelocity({ x: 0, y: -10 }); L...
来源: Laya3.0_文档 发布时间: 20251010
...能看,不能编辑修改的基础文本。LayaAirIDE中提供了Text和Label这两种基础的显示文本组件。 1.1、文本的底层渲染机制 LayaAir引擎在文本的底层渲染上,有两种方式。 分别是Text文本类的文本统一提交方式,和Graphics类的fillText文本...
来源: Laya3.0_文档 发布时间: 20251010
...radioGroup.pos(100, 100);//设置 radioGroup 的位置信息。 radioGroup.labels = "item0,item1,item2";//设置 radioGroup 的标签集。 radioGroup.skin = "resource/ui/radio.png";//设置 radioGroup 的皮肤。 radioGroup.space = 10;//设置 radioGroup 的项间隔距离。 radioGroup.selectHand...
来源: Laya3.0_api 发布时间: 20231115
...是按照视频打的 但是不知道为什么 貌似每个控件(按钮 label)都是"空的" 一访问就报出异常 我查了layaUI.max.all.js文件 里面的组件名正确 layaUI.max.all.js: this.pauseBtn=null; this.hpLabel=null; this.leve...
来源: Laya_社区 发布时间: 20171118