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

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

11. 有人遇到GetType 的问题吗? laya2.0 [ 89%]

...rototype.UnBufferMove找到   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { a = this.m_moveBuffer.indexOf(a); this.m_moveBuffer[a] = null } ;  替换为:   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { let ba=0; while(true){ ba = this.m_moveBuffer.indexOf(a,ba); if(ba&lt...

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

12. 照着官方文档写的 Dialog 报错? [ 89%]

照着官方文档写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, ...

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

13. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 88%]

...入口函数start()[code] start() { return __awaiter(this, void 0, void 0, function* () { let json = JSON.parse(fs.readFileSync("outConfig.json")); this.BaseURL = emiter_1.emiter.BaseURL = json.from; this.outfile = json.out; this.createAS = json.createAS; this.layajsURL = json.layajsURL; this.tsCong...

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

14. TypeError: Cannot read property 'length' of null [ 88%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.B...

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

15. Laya截图3D场景相关模型,导致模型透视! [ 87%]

...问题条件,有一个(.lh)后缀模型资源。 具体代码如下: (function () { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var resUrl = "../bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.a...

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

16. 动画混合问题,Avatar动画混合报错. [ 85%]

...te (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22941:22)   at Function.Animator._update (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:23368:47)   at Scene3D.__proto._update (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:32831:12)   at Stage.__proto.render (file:///F...

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

17. js进度,进度,js场景进度效果 [ 84%]

js进度,进度,js场景进度效果 new function() { var className = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky...

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

18. 请问UI之间的场景切换要怎么写 [ 84%]

请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundMan...

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

19. typeScript Java互调问题 [ 83%]

...r() {         Laya.init(1280, 720);         sumToJava();     } } function test() {     console.log("java to js") } function sumToJava() {     alert("js to java");     js2java.back(); } //程序入口 new LayaUISample(); declare var js2java : any;   ———————————...

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

20. 对话框点击空白处无法关闭 [ 83%]

...IDE版本1.7.15这是我在编辑模式发布的一个对话框var testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); ...

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