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

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

511. 我想动态改自定义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

512. 加载时间轴动画报错 [ 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

513. 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

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

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

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

515. 构建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

516. 一个很奇怪的问题,不知道其他同学遇到没有 [ 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

517. 新手的伤,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

518. LayaAir3D UnityPlugin 1.7.16 [ 67%]

...回复 strive 赞同来自: 这是跑错的异常: Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats. UnityEngine.Texture2D:EncodeToPNG() LayaExport.DataManager:saveTextureFile(JSONObject, Texture2D, String, String, String) LayaExport.DataManager:sa...

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

519. 构建app闪退,测试app扫码可以运行 [ 67%]

LayaNative 构建app闪退,测试app扫码可以运行 报错原因是加载layer.js出现错误,没有加载layer.js时就没问题。用laya扫码就可以正常运行,但是构建app用androidstudio打开就不行了。    2019-03-15 08:45:13.438 8214-8265/com.layabox.hello A/art: art/ru...

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

520. 手机打开游戏页面,一片空白是什么原因?电脑上是正常的 [ 65%]

...or(message, filename, line, col, pos); ^ SyntaxError: Unexpected token operator «=», expected punc «,» at JS_Parse_Error.get (eval at <anonymous> (D:\LayaAirIDE\LayaAir1710N\resources\app\node_modules\layacmd\node_modules\uglify-js\tools\node.js:27:1), <anonymous>:86:23) 原本遇到...

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