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

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

51. 加载.lh文件 运行后黑屏 无法显示 [ 83%]

...yaMonkey.lh", type: Laya3D.HIERARCHY, priority: 1}];     //Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));         Laya.loader.create("Export/LayaScene_JJF/Conventional/JJF.lh", Laya.Handler.create(this, this.onComplete));     }     public onComplete():v...

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

52. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 83%]

...ite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:true,showAngleIndicator:true,showCollisions:t...

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

53. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 83%]

...src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如果内容需要重画,Rend...

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

54. 射线检测-碰撞器混合 [ 83%]

...yaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 this.cam...

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

55. 加载.ls场景文件,销毁场景,再加载同一场景,想恢复初始状态,结果报错【附Demo】 [ 83%]

...andler.__proto.runWith (laya.core.js:1400)     at LoaderManager.__proto._createOne (laya.core.js:14594)     at LoaderManager.__proto._create (laya.core.js:14560)     at LoaderManager.__proto.create (laya.core.js:14514) 附件 : --> test_bug.zip 2019-01-24 1 条评论 免费帖 --> 分享 微...

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

56. 分享-js资源进度加载 [ 83%]

...ress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), ...

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

57. t._addReference is not a function [ 82%]

...问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是加载进度回调的时候跑到纹...

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

58. tiledmap有时尺寸不正确 [ 82%]

...图,并显示当前场景 * @param conf 地图的配置信息 */ public create(conf:LevelConf, handler:Handler):void{ this._mLevelConf = conf; this._mCompleteHandler = handler; this._mViewPortX = 0; this._mViewPortY = 0; this._mTiledMap = new TiledMap(); this._mLoadState = ESceneLoadState.eLoadMap...

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

59. 1.0 骨骼drawcall优化猥琐方法 [ 82%]

...submit?                 var tempSubmit:Submit = Submit.createShape(context, mIBBuffer, mVBBuffer, mEleNum, _indexStart, Value2D.create(ShaderDefines2D.SKINMESH, 0));                 transform || (transform = Matrix.EMPTY);                 transform.t...

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

60. 微信小游戏报错 the .lh file root type must be Scene [ 82%]

... 微博 QZONE 微信 hejianchun 赞同来自: 3D的用这个 Laya.loader.create()接口; 2018-03-23 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 joshua0526 相关问题 关于微信小游戏关系链的问题 【屏幕适配】在Laya...

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