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

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

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

...@property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png...

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

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

...件脚本的识别@regClass()3.2 组件属性的识别@property()3.3 IDE中执行生命周期方法@runInEditor3.4 @classInfo()四、代码中使用属性4.1 节点类型方式4.2 组件类型的使用4.3 Prefab类型属性实体组件系统(ECS) Author:Charley 、谷主、孟星煜 一、 什...

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

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

...public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.lab.size(500, 30); //大小 this.la...

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

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

...nent.onAwake Defined in laya/components/Component.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销...

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

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

...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...

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

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

...type: Laya.CheckBox }) public checkbox: Laya.CheckBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.checkbox.pos(300, 300); // this.checkbox.selected = true; this.checkbox.label = "多选框"; this.checkbox.labelBold = t...

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

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

...件也会进行初始化,会调用脚本的构造函数,这时候就会执行Scene.open方法打开LoadScene.ls,出现渲染叠加的现象。您可以将_init方法放到Main脚本的生命周期函数内,例如onAwake或者onEnable等,但建议放到构造函数内,这样在IDE内...

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

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

...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...

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

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

... txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 thi...

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

100. 垂直滑动条组件 · LayaAir3.0文档 · LAYABOX [ 69%]

...rty({type:Laya.VSlider}) public vslider: Laya.VSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.pos(300,300);//滑动条位置 this.vslider.skin = "resources/vslider.png";//滑动条底图皮肤 this.vslider....

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