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

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

31. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 76%]

...mpId":3}],"loadList":["comp/button.png"],"loadList3D":[]};         constructor(){ super()}         createChildren():void {             super.createChildren();             this.createView(GameSceneuiUI.uiView);         }     }     REG("ui.Game...

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

32. 获取不到父物体 节点 [ 75%]

...t default class startScene extends Laya.Scene { private sp: Sprite; public constructor() { super(); console.log("startScene"); console.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.numChildren); console.log(this.parent); console.log(this.name); } }这个同样是null ex...

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

33. 粒子系统-燃烧大地 [ 75%]

...hreeDimen/particle/ETF_Burning_Ground.lh"));class Particle_BurningGround { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

来源: Laya_示例 发布时间: 20260815

34. 粒子系统-永恒之光 [ 75%]

.../threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

来源: Laya_示例 发布时间: 20260815

35. TypeError: Cannot read property 'length' of null [ 75%]

...误 Cannot read property 'displayObject' of null Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeError: te...

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

36. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 75%]

... Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Ms...

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

37. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 75%]

...示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //...

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

38. 3D场景-场景加载 [ 75%]

...eDimen/skyBox/skyBox2/skyCube.ltc"); camera.sky = skyBox;class SceneLoad { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene.load("../../res/t...

来源: Laya_示例 发布时间: 20260815

39. 音频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 75%]

...prite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sound.source = "resources/sound.wav"; //音频路径 this.sound.lo...

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

40. laya.net.URL_API3.0 [ 74%]

...tomFormat函数,可以自定义URL格式化的方式 Hierarchy URL Index Constructors constructor Properties basePath basePaths rootPath version Accessors path url Methods __init__ customFormat formatURL getFileName getPath getResURLByUUID getURLVerion initMiniGameExtensionOverrides join normalize...

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