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

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

1. 音频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

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

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

2. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 98%]

... export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController);...

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

3. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

... @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoP...

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

4. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

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

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

5. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...lass() 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 = 1; Laya.timer.frameL...

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

6. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

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

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

7. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

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

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

8. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

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

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

9. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

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

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

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

...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