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

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

141. [LayaAir3]dialog弹窗打开前如何传入参数刷新界面? [ 51%]

...调用到弹窗的脚本组件的设置数据方法,设置好数据后在onAwake里设置内容,这个方法的问题是存在弹出动画的时候会有差异,onOpended方法是在动画运行完毕之后才触发的;或者先设置弹窗里的元素不可见,在onOpened方法里面设置...

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

142. laya.physics.joint.RevoluteJoint [ 50%]

...Methods MethodDefined By  _createJoint():void[override] RevoluteJoint _onAwake():void[override] JointBase _onDisable():void[override] JointBase _onEnable():void[override] JointBaseProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的链接点,是相对于自身刚...

来源: Laya2.0_api 发布时间: 20190513

143. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 50%]

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

144. laya.physics.joint.PrismaticJoint [ 49%]

...ethods MethodDefined By  _createJoint():void[override] PrismaticJoint _onAwake():void[override] JointBase _onDisable():void[override] JointBase _onEnable():void[override] JointBaseProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的控制点,是相对于自身刚...

来源: Laya2.0_api 发布时间: 20190513

145. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 加载Spine动画数据资源(json文件),注意一定要设置为Laya.Loader.SPINE类型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE)....

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

146. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

... extends Laya.Script { public _list: Laya.List; constructor() { super(); } onAwake(): void { var list: Laya.List = new Laya.List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // ...

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

147. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...件机制。 在LayaAir3.0中,Component具有完整的生命周期,即onAwake,onStart,onEnable,onUpdate,onLateUpdate,onDisable,onDestroy,不再使用_onEnable,_onDisable等下划线函数。 _onEnable,_onDisable等下换线函数仍然给内部使用 对比Component, Script增加了交互行...

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

148. laya.d3.core.Camera_API3.0 [ 44%]

...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...

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

149. laya.d3.webxr.core.WebXRCamera_API3.0 [ 43%]

...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...

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

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

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