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

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

41. HTMLIframeElement加载html网页的问题 [ 57%]

...MLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/...

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

42. 使用 addChild 加载界面后,绑定事件报错 [ 57%]

...如下: export default class GameStart extends ui.GameStartUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //Laya.Scene.open("GameView.scene");         ...

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

43. mac的2.0.0 beta3版本场景添加脚本为组件报错 [ 56%]

...个窗口提示:    export default class Start extends Laya.Script { constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 */ onAwake(): void {  }  /** * 第一次执行update之前执行,只会执行一次 */ onS...

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

44. 载入场景报错 [ 55%]

...s.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDD...

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

45. Cannot read property 'rayCast' of undefined [ 55%]

...ayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D...

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

46. "Background is not defined"怎么会没定义呢???求救 [ 54%]

... 2017-04-21 10:42 还是报错啊~ TypeError: window.Background is not a constructor

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

47. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 53%]

...我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"...

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

48. Laya3D场景加载问题 [ 52%]

...<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         ...

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

49. 3D场景中背景无法透明,版本2.7.1 [ 52%]

...透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D());...

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

50. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 52%]

...弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.cre...

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