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

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

121. laya.d3.core.MeshSprite3D_API3.0 [ 67%]

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

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

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

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

123. laya.d3.core.SkinnedMeshSprite3D_API3.0 [ 67%]

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

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

124. laya.d3.core.trail.TrailSprite3D_API3.0 [ 67%]

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

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

125. laya.d3.core.SimpleSkinnedMeshSprite3D_API3.0 [ 67%]

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

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

126. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radiogroup.pos(100, 100); this.radiogroup.labels = "label0,label1,label2"; this.radiogroup.space = 20; this.radiogroup.selectedIndex = 0; this.radiogroup.direction = "vertical"; } } 二、创建自定义...

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

127. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标...

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

128. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...ner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController); //设置出生点位置 this.characterController.position = new ...

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

129. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 66%]

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

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

130. 新人求助:onStart赋值为什么在onUpdate会输出一次为空 [ 66%]

...mtTest extends Laya.Script{          lab:Laya.Label;      onAwake():void{             }     onStart():void{                this.lab=this.owner as Laya.Label;         }         onUpdate():void{         if(this.lab==null){     ...

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