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

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

91. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 74%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya.MeshSprite3D(); } //物体必须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 thi...

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

92. LayaScript onEnable如何在加载场景后不执行 [ 74%]

...g的visible设置成false   加载场景后还是运行了Dialog脚本的OnAwake OnEnable   打开场景的方式是Laya.Scene.open    引擎版本:2.1.0beta 2019-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

93. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); this.panel.size(200, 200); this.panel.scrollType = Laya.ScrollType.Both; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hSc...

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

94. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vbox.pos(100, 100); this.vbox.bgColor = "#ffffff"; this.vbox.space = 30; this.vbox.align = "center"; } } 二、通过代码创建VBox 有时,需要用代码管理UI,创建UI_VBox类用于创建VBox组...

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

95. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 73%]

...均已创建完毕,此方法只执行一次 */ override public function onAwake():void{ //获取脚本的拥有者 meshsp = this.owner as MeshSprite3D; } //物体必须拥有碰撞组件(Collider) //当被鼠标点击 override public function onMouseDown(e:Event):void{ //trace("点击到了我...

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

96. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hbox.pos(100, 100); this.hbox.bgColor = "#ffffff"; this.hbox.space = 100; this.hbox.align = "middle"; } } 二、通过代码创建HBox组件 有时,需要用代码管理UI,创建UI_HBox类用于创建...

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

97. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

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

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

98. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 73%]

... getPhysicsSimulation getcurrentForce getcurrentTorque hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setAxis setConnectRigidBody setConstraintEnabled setOverrideNumSolverIterations Constructors constructor new ConfigurableCons...

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

99. laya.display.Node_API3.0 [ 72%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constructors constructor new Node(): Node Defined in ...

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

100. laya.d3.core.Sprite3D_API3.0 [ 72%]

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

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