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

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

61. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 75%]

...       /**     *@inheritDoc     */   __proto.onAsynLoaded=function(url,data,params){     var json=data[0]     if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other fu...

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

62. 技术文档中的示例js运行报错 [ 74%]

...果 里边的示例运行报错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() f...

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

63. 引擎是否可以针对支持webgl2的机型做自动切换为webgl [ 74%]

...换为webgl 部分机型下会出现 this._gl.createVertexArray is not a function. (In 'this._gl.createVertexArray()', 'this._gl.createVertexArray' is undefined);at requestAnimationFrame callback function   这种情况这边判断是不支持webgl2,是否又方法直接判断手机是否支持we...

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

64. laya升级到2.0.0beat4版本,加载场景出现的bug [ 74%]

... Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55 at Stage.__proto.addChild (file:///E:/H5Project/TestH5Project/TestFeiChe3D/bin/libs/laya.core.js:13235:9) 2018-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

65. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 74%]

...flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new Loade...

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

66. 最新版本 1.7.5 beta fontClip [ 73%]

...博 QZONE 微信 a13121527420 - 哇啦哇啦哇啦! 赞同来自: public function set index(value:int):void {             _index = value;             if (_bitmap && _sources) {                 this.graphics.clear();                 var splitArr:Arr...

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

67. 有关PathFinding.js [ 73%]

...e.Grid(matrix);   然后就报错了 TypeError: this._buildNodes is not a function at Object.Grid (file:///D:/Layabox/PathFinding/bin/libs/laya.pathfinding.js:41:19) at LayaAir3D.pathFindingTest (file:///D:/Layabox/PathFinding/bin/js/LayaAir3D.js:39:33) at new LayaAir3D (file:///D:/Layabox/PathFind...

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

68. Laya.loader.load 加载场景报错 [ 73%]

... 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function...

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

69. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 73%]

... ‘_physicsUpdateList’of null 求指导~~       __proto._onDestroy=function(){          (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));          var physics3D=Laya3D._physics3D;         delete PhysicsComponent._phys...

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

70. 射线一直无法获取物体 [ 73%]

...D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);     var hit = new Laya.RaycastHit();     var point = new Laya.Vector2();     v...

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