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

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

1. 事件管理 · LayaAir3.0文档 · LAYABOX [ 100%]

...池,不正确的回收以及调用,可能会影响事件的执行。 onAwake(): void { console.log("Game Start"); this.Tab.selectHandler = Laya.Handler.create(this,(index:number)=>{ console.log(index); }) } Tab会侦听用户点了某个标签,并从对象池创建一个处理器。 ​ 2...

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

2. 动画节点 · LayaAir3.0文档 · LAYABOX [ 94%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.inter...

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

3. laya.display.Node [ 85%]

...ouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node  onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node  once(type:String, caller:*, listener:Function, arg...

来源: Laya2.0_api 发布时间: 20190513

4. laya.display.Node_API3.0 [ 78%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constructors constructor new Node(): Node Defined in ...

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

5. 网络通信 · LayaAir3.0文档 · LAYABOX [ 76%]

...ect 转换Message对象数据到一组Javascirpt数据。 4.5 代码示例 onAwake(): void { var resPath: string = "assets/res/protobuf/awesome.proto"; // 加载protobuf文件 this.ProtoBuf.load(resPath, this.onAssetsLoaded); } private onAssetsLoaded(err: any, root: any): void { if (err) throw err; ...

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

6. laya.d3.core.Sprite3D_API3.0 [ 75%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new Sprite3...

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

7. laya.d3.core.RenderableSprite3D_API3.0 [ 74%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new Rendera...

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

8. laya.d3.core.render.BaseRender_API3.0 [ 74%]

...applyReflection _cloneTo _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setRenderbitFlag __init__ changeVertexDefine shaderValueInit Constructors constructor new BaseRender(): BaseRender Overrides ...

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

9. 场景管理 · LayaAir3.0文档 · LAYABOX [ 73%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Scene.open("Msg.ls", false, { "text": "点击成功!" }); }); } } 其中,Scene场景有一个Button组件,需要在IDE...

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

10. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 73%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce createFromMesh createFromMeshAndHeig...

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