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

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

101. IDE场景渲染错误 [ 71%]

...。您可以将_init方法放到Main脚本的生命周期函数内,例如onAwake或者onEnable等,但建议放到构造函数内,这样在IDE内编辑时执行生命周期函数,来避免出现这种现象。 2023-02-07 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

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

...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.lab.size(500, 30); //大小 this.lab.pivot(this.lab.width/2, this.lab.height/2); //轴心点 this.lab.text = "大家好,...

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

103. laya.d3.core.light.LightSprite_API3.0 [ 70%]

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

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

104. laya.d3.core.light.PointLight_API3.0 [ 69%]

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

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

105. laya.d3.core.RenderableSprite3D_API3.0 [ 69%]

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

106. laya.d3.core.BaseCamera_API3.0 [ 69%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerO...

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

107. laya.d3.core.light.SpotLight_API3.0 [ 69%]

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

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

108. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.pos(300,300);//滑动条位置 this.vslider.skin = "resources/vslider.png";//滑动条底图皮肤 this.vslider.value = 0.5; this.vslider.max = 50; this.vslider.min = 0; this.vslider.tick = 1; thi...

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

109. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider.pos(300, 300);//滑动条位置 this.hslider.skin = "resources/hslider.png";//滑动条底图皮肤 this.hslider.value = 0.5; this.hslider.max = 50; this.hslider.min = 0; this.hslider.tick = 1; th...

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

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

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

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