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

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

51. box2d引擎报错问题 [ 64%]

box2d引擎报错问题 我做的项目是会有不断的生成预制(有RigidBody和BoxCollider),在运动到终点时再回收到Pool中,有概率报如下错误laya.physics.js:430 Uncaught TypeError: Cannot read property 'GetType' of null     at box2d.b2Fixture.GetType (laya.physics.js:430...

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

52. 为模型指定地形材质报错 [ 63%]

为模型指定地形材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); ...

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

53. Sprite3D.instantiate不成功,总是报错 [ 63%]

Sprite3D.instantiate不成功,总是报错 Sprite3D.instantiate(spr); spr已经在显示游戏中,我用上面的代码克隆总是出错,跳到:laya.d3.js中:   请问该如何解决?   使用克隆是因为同样一个模型,用Sprite.load.on的HIERARCHY_LOADED就只执行一次...

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

54. styles.xml报错 [ 62%]

styles.xml报错 按钮存为默认属性后就报错,LayaAirIDE_1.7.11 - 1.7.13都试了 <html type="Button" props="label=label@@!@@x=-171@@!@@y=431@@!@@stateNum=1"> <body> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1e...

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

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

物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 package view { import laya.display.Sprite; import laya.renders.Render; import laya.utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageH...

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

56. laya2.0 http 发送请求跨域报错 [ 62%]

laya2.0 http 发送请求跨域报错 这边用原生xmlhttprequest发送请求正常,用laya.httprequest 发送请求报错。  Access to XMLHttpRequest at 'file:///C:\Users\pc\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pnghttp://gs.mingdikeji.com/passion//system/getVersion' ...

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

57. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 61%]

使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 重现demo如下: Laya.init(600, 400, WebGL); let bgSprite = new Laya.Sprite(); bgSprite.graphics.drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Lay...

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

58. 3D开启多线程报错 [ 61%]

3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true;   加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh");   报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...

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

59. 3D开启多线程报错 [ 61%]

3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true;   加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh");   报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...

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

60. Protobuf decode报错 [ 61%]

Protobuf decode报错 使用protobuff 连接socket , socket约定的格式:length(整形),消息号(整形) ,消息体(buffer)   1.发送给服务器正常,也可以接受到服务区的消息     //已经加载完了.proto文件 var awesomMsg:any=root.lookup("com.lll.game....

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