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

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

521. 编译报错。如何定位问题 [ 68%]

编译报错。如何定位问题 SyntaxError: Unexpected token: punc (,) at JS_Parse_Error.get (eval at <anonymous> (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/layacmd/node_modules/uglify-js/tools/node.js:27:1), <anonymous>:86:23) 2017-11-13 添加评论 免...

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

522. 微信小游戏打包后SFS2X.d.ts没有打包成js文件 倒是运行报错未找到 [ 68%]

...ts没有打包成js文件 倒是运行报错未找到 SFS2X is not defined;at api readFile success callback function ReferenceError: SFS2X is not defined     at Server.initSFS (http://127.0.0.1:17168/game/code.js:130617:26) 2019-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

523. 我照的列子做,Protobuf,结果报错! [ 68%]

...===================================================== class Game{    private ProtoBuf:any = Browser.window.dcodeIO.ProtoBuf;     ... }     err code: ============================================================ TypeError: Cannot read property 'ProtoBuf' of undefined at new Game (file:///D:/Proj...

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

524. 我想动态改自定义shader里的值,应该怎么写?? [ 68%]

...,应该怎么写?? 我想动态改自定义shader里的值, CustomMaterial.js应该怎么写??我这样写set的时候报错 Uncaught TypeError: this._setValue is not a function at CustomMaterial.setAlphaTestValue (CustomMaterial.js:34) at LayaAir3D.js:94CustomMaterial.setAlphaTestValue ...

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

525. 加载时间轴动画报错 [ 68%]

加载时间轴动画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Can...

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

526. Cannot enlarge memory arrays. [ 68%]

...(2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 laya.phy...

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

527. 3d模型导出成lm,是否只有windows版本的fbxtools?如果是,能否先将3d模型导入unity,然后通过unity插件导出 [ 68%]

...可能出现不一致的编译错误 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 如何导入3D模型,以及展示与编辑它 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? 问题状态 最新活动: 2017...

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

528. 构建android studio项目run debug时报错 [ 68%]

构建android studio项目run debug时报错 nativeLibraryDirectories=[/data/app/com.kx.game-2/lib/x86_64, /system/lib64, /vendor/lib64]]] couldn't find "liblayaair.so" at java.lang.Runtime.loadLibrary0(Runtime.java:984) at java.lang.System.loadLibrary(System.java:1530)   找不到 liblayaair.so...

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

529. 一个很奇怪的问题,不知道其他同学遇到没有 [ 68%]

...个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动调试,居然报了这个错:     Uncaught ReferenceError: common is not defined     at new main (main.ts:4)     at main.ts:11   我试了很多次,都是这样,哪位大神...

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

530. 新手的伤,ReferenceError: CameraMoveScript is not defined [ 68%]

... = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜色 camera.clearColor = new Laya.Vector4(0, 0, 0.6, 1); //加入摄像机移动控制脚本 ca...

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