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

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

101. laya.d3.core.ui3d.UI3D_API3.0 [ 71%]

...eraDistance _initialize _setOwner destroy getUITexture hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onReset onStart onUpdate setRenderbitFlag __init__ changeVertexDefine shaderValueInit Constructors constructor new UI3D(): UI3D Overrides BaseRender.constructor D...

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

102. mac的2.0.0 beta3版本场景添加脚本为组件报错 [ 71%]

...时所有节点和组件均已创建完毕,次方法只执行一次 */ onAwake(): void {  }  /** * 第一次执行update之前执行,只会执行一次 */ onStart(): void {   }  onUpdate(): void { }  onEnable(): void { }  /** * 手动调用节点销毁时执行 */ onDestroy(): void {  } }...

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

103. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.progressBar.value = 0.01; //初始进度值 this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 chang...

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

104. laya.display.Node [ 70%]

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

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

105. timer无法执行 [ 70%]

...可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(1000, this, this.shootBall); }   public shootB...

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

106. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 70%]

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

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

107. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.tab.pos(200, 200); this.tab.labelBold = true; this.tab.labelSize = 20; this.tab.labelStrokeColor = "#000000"; this.tab.labels = "Tab 1,Tab 2,Tab 3"; this.tab.labelColors = "#32556b,#8FB299,#ff0000"; this....

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

108. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...rated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始...

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

109. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.combobox.pos(100, 100); this.combobox.labels = "item0,item1,item2,item3,item4,item5,item6,item7"; this.combobox.labelColors = "#32556b,#32cc6b,#ff0000"; this.combobox.itemHeight = 60; // itemColors格式...

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

110. laya.d3.physics.Rigidbody3D_API3.0 [ 69%]

...ollisionFlags getPhysicsOrientation getPhysicsPosition hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setCollisionFlags wakeUp Constructors constructor new Rigidbody3D(collisionGroup?: number, canCollideWith?: number): Rigidbod...

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