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

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

71. 在UI类里调用启动类的静态函数失败了 [ 66%]

...: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onLoaded(...

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

72. 微信小游戏图片加载不出来 [ 66%]

...E }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.cre...

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

73. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 66%]

...要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

74. 发布之后报错,跨域问题 [ 66%]

... file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_...

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

75. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 65%]

...1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。 ...

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

76. 关于资源加载的问题 [ 65%]

....FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没有getRes操作。我按这样子写法就不行

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

77. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 65%]

...0)) as Camera; camera.transform.translate(new Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。 ...

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

78. 不知道改如何找到错误= = [ 65%]

...材本身也是循环的。但是不知道为什么会跳帧。 lose skin comp/button.png 错误,全部按照UI案例来的呀 哪里能找到on绑定事件的例子 请问在哪里可以找到js语言laya游戏的源码 动画getGraphicBounds()为什么错误 "设计模式"导出的View出现“l...

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

79. 火狐浏览器上webgl异常 [ 64%]

...博 QZONE 微信 阿龙 赞同来自: [error]Failed to load: res/atlas/comp.atlas myLayaPricticeAll.max.js:16597:5 lose skin comp/button.png  Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. 2018-0...

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

80. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 64%]

...a.Camera; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。 ...

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