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

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

1. laya.display.Stage_API3.0 [ 100%]

...rited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方...

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

2. laya.display.Text_API3.0 [ 96%]

...设置 text 的字体大小。 text.wordWrap = true;//设置 text 的文本自动换行。 text.x = 100;//设置 text 对象的属性 x 的值,用于控制 text 对象的显示位置。 text.y = 100;//设置 text 对象的属性 y 的值,用于控制 text 对象的显示位置。 text.width = 30...

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

3. laya.ui.Label_API3.0 [ 91%]

...ng = 4;//设置 label 的行间距。 label.wordWrap = true;//设置 label 自动换行。 label.padding = "10,10,10,10";//设置 label 的边距。 label.color = "#ff00ff";//设置 label 的颜色。 label.text = "Hello everyone,我是一个可爱的文本!";//设置 label 的文本内容。 labe...

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

4. laya.resource.Texture_API3.0 [ 90%]

...d in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 offsetX offsetX: number = 0 Defined in laya/resource/Texture.ts:35 沿 X 轴偏移量。 offsetY...

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

5. laya.display.Input_API3.0 [ 89%]

...rited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方...

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

6. laya.display.Sprite_API3.0 [ 88%]

...,即mouseEnabled=false,但是只要对其监听任意鼠标事件,会自动打开自己以及所有父对象的mouseEnabled=true。所以一般也无需手动设置mouseEnabled。 LayaAir引擎API设计精简巧妙。核心显示类只有一个Sprite。Sprite针对不同的情况做了渲染...

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

7. laya.resource.HTMLCanvas_API3.0 [ 88%]

...d in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资...

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

8. laya.ui.TextInput_API3.0 [ 85%]

...t 的字体大小。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.x = 100;//设置 textInput 对象的属性 x 的值,用于控制 textInput 对象的显示位置。 textInput.y = 100;//设置 textInput 对象的属性 y 的值,用于控制 textInput 对象的...

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

9. laya.ui.TextArea_API3.0 [ 84%]

...文本字体大小。 textArea.wordWrap = true;//设置 textArea 的文本自动换行。 textArea.x = 100;//设置 textArea 对象的属性 x 的值,用于控制 textArea 对象的显示位置。 textArea.y = 100;//设置 textArea 对象的属性 y 的值,用于控制 textArea 对象的显示...

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

10. laya.ui.Clip_API3.0 [ 83%]

...割数量、竖向分割数量。 clip.autoPlay = true;//设置 clip 动画自动播放。 clip.interval = 100;//设置 clip 动画的播放时间间隔。 clip.x = 100;//设置 clip 对象的属性 x 的值,用于控制 clip 对象的显示位置。 clip.y = 100;//设置 clip 对象的属性 y ...

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