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

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

1. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...1.4 脚本控制Text2. 代码创建Text基础文本(Text) Text继承于Sprite,是静态文本的基础组件。这里我们介绍一下Text专属的组件属性。 1. LayaAir IDE中使用Text 1.1 创建Text 如图1-1所示,可以在层级窗口中右键进行创建,也可以从小部件窗...

来源: Laya3.0_文档 发布时间: 20251010

2. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 99%]

...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...

来源: Laya3.0_文档 发布时间: 20251010

3. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 95%]

...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...

来源: Laya3.0_文档 发布时间: 20251010

4. laya.display.Input_API3.0 [ 87%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _parseEscapeChars _parseEscapeChars: boolean Inherited from Text._parseEscapeChars Defined in laya/display/Text.ts:202 是否将字符串中的\n,\t转换为实际功能的字符 _scene _scene: Node Inherited fr...

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

5. laya.display.Text_API3.0 [ 86%]

...aya.stage.addChild(text);//将 text 添加到显示列表。 } } Hierarchy Sprite Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROL...

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

6. laya.display.Input [ 82%]

...Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框,由于不同浏览器的差异,会导致此对象的默认文本的位置与用户...

来源: laya_api 发布时间: 20170929

7. 纹理资源 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...的重要资源,在LayaAir引擎中,纹理可以应用于2D对象(如Sprite、Image等)和3D对象(如Sprite3D的材质)上,用于呈现图像、颜色和细节。 1、纹理资源基础 1.1 纹理资源的类型 LayaAir引擎支持多种类型的纹理资源: 普通纹理资源:...

来源: Laya3.0_文档 发布时间: 20251128

8. laya.ui.TextInput [ 73%]

...kagelaya.uiClasspublic class TextInputInheritanceTextInput Label Component Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By a...

来源: laya_api 发布时间: 20170929

9. laya.ui.TextArea [ 70%]

....uiClasspublic class TextAreaInheritanceTextArea TextInput Label Component Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 表示...

来源: laya_api 发布时间: 20170929