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

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

91. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 72%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫...

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

92. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 72%]

...池,方便下次复用。如果没有重置,则进行回收复用 onAwake 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable 组件被启用后执行,比如节点被添加到舞台后 onStart 第一次执行onUpdate之前执行,只...

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

93. 显示文本组件 · LayaAir3.0文档 · LAYABOX [ 72%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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_文档 发布时间: 20230629

94. laya.d3.physics.Rigidbody3D_API3.0 [ 72%]

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

95. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 71%]

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

96. 多选框组件 · LayaAir3.0文档 · LAYABOX [ 71%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.checkbox.pos(300, 300); // this.checkbox.selected = true; this.checkbox.label = "多选框"; this.checkbox.labelBold = true; this.checkbox.labelSize = 30; this.checkbox.labelColors = "#0100ff, #16fa0e, #f...

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

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

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

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

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

99. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 70%]

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

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

100. 垂直滑动条组件 · LayaAir3.0文档 · 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_文档 发布时间: 20230919