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

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

131. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 61%]

...以的,知是是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

132. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 60%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.assets = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void {...

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

133. laya.d3.core.Camera_API3.0 [ 59%]

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

134. laya.d3.webxr.core.WebXRCamera_API3.0 [ 59%]

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

135. 支付宝小游戏 · LayaAir3.0文档 · LAYABOX [ 59%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprit...

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

136. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 58%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child...

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

137. 我竟然被射线检测这个小功能给难了一天了 [ 58%]

...itInfo:Laya.HitResult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(thi...

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

138. Laya3D场景加载问题 [ 58%]

...ate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("ga...

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

139. laya.d3.core.light.DirectionLight [ 57%]

...mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:A...

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

140. laya.d3.core.light.PointLight [ 57%]

...mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:A...

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