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

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

1. 开放数据域组件 · LayaAir3.0文档 · LAYABOX [ 100%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.OpenDataContextView }) public opendata: Laya.OpenDataContextView; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕...

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

2. 音频节点 · LayaAir3.0文档 · LAYABOX [ 97%]

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

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

3. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 90%]

...间会调用一次? 可以设置调用时间吗? --------------------- declare module laya.d3.component { /** * <code>Component3D</code> 类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected stati...

来源: Laya_社区 发布时间: 20171109

4. 动画节点 · LayaAir3.0文档 · LAYABOX [ 83%]

...perty } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此...

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

5. 基础文本 · LayaAir3.0文档 · LAYABOX [ 74%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number =...

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

6. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 74%]

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

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

7. 视频节点 · LayaAir3.0文档 · LAYABOX [ 70%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加...

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

8. 升级到3.0-beta6无法选择资源了 [ 69%]

...如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {         super();     } } 附件 : -->...

来源: Laya_社区 发布时间: 20230412

9. 显示文本组件 · LayaAir3.0文档 · LAYABOX [ 66%]

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

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

10. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 62%]

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

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