大约有 201 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
...eraDistance _initialize _setOwner destroy getUITexture hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onReset onStart onUpdate setRenderbitFlag __init__ changeVertexDefine shaderValueInit Constructors constructor new UI3D(): UI3D Overrides BaseRender.constructor D...
来源: Laya3.0_api 发布时间: 20231115
...*****593 赞同来自: 你脚本中的init函数要在脚本生命周期的onAwake(此时场景中的节点和组件创建完毕)方法后执行,你在构造函数中调用init,现在场景中的节点还未激活,可以看一下这篇关于节点和脚本的生命周期文档https://ldc2....
来源: Laya_社区 发布时间: 20201230
...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
...以的,不知是不是3的bug还是需要用其他方法来实现。 onAwake(): void { // 无加载失败重试 Laya.loader.retryNum = 0; var urls: any = ["do not exist", "resources/res/fighter/fighter.png", "resources/res/legend/map.jpg"]; ...
来源: Laya_社区 发布时间: 20240705
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerO...
来源: Laya3.0_api 发布时间: 20231115
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sp...
来源: Laya3.0_文档 发布时间: 20251010
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child...
来源: Laya3.0_文档 发布时间: 20251010
...mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:A...
来源: Laya2.0_api 发布时间: 20190513
...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...
来源: Laya3.0_api 发布时间: 20231102
...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...
来源: Laya3.0_api 发布时间: 20231102