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

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

121. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...件机制。 在LayaAir3.0中,Component具有完整的生命周期,即onAwake,onStart,onEnable,onUpdate,onLateUpdate,onDisable,onDestroy,不再使用_onEnable,_onDisable等下划线函数。 _onEnable,_onDisable等下换线函数仍然给内部使用 对比Component, Script增加了交互行...

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

122. laya.d3.core.Camera_API3.0 [ 44%]

...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...

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

123. laya.d3.webxr.core.WebXRCamera_API3.0 [ 43%]

...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...

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

124. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...过的UI组件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) U...

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

125. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 41%]

...------- | ------------------------------------------------------------ | | onAwake | 组件被激活后执行,此时所有节点组件均已创建完毕,此方法只会执行一次 | | onEnable | 组件被启用后执行,比如,节点被添加到舞台后执行 | | onStart | 在第1次执...

来源: Laya2.0_文档 发布时间: 20210715

126. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

... } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Mai...

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

127. laya.html.dom.HTMLIframeElement_API3.0 [ 37%]

...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...

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

128. laya.html.dom.HTMLDivElement_API3.0 [ 37%]

...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...

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

129. laya.d3.core.light.DirectionLight [ 37%]

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

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

130. laya.d3.core.light.PointLight [ 36%]

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

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