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

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

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

我照的列子做,Protobuf,结果报错! demo:http://layaair.ldc.layabox.com ... uffer   ts code: ============================================================ class Game{    private ProtoBuf:any = Browser.window.dcodeIO.ProtoBuf;     ... }     err code: =============================...

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

32. layaair2-cmd 运行报错,求助 [ 56%]

layaair2-cmd 运行报错,求助 PS D:\Work\LayaTest\fightDemo2.7.1\fightDemo2.7.1> layaair2-cmd compile internal/mod ules/cjs/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Nick'z\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp\bin\gulp.js'     at...

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

33. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 56%]

深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 ​1.背景 通常情况下我们在做项目时都是在LayaAir IDE下进行调试和开发的。通常情况不会接触到typescript的“编译”和bundle过程。这节我们要深入了解其中...

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

34. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 55%]

分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket)     理论上来说,pomelo-jsclient-websocket是js,ts作为js的超集,应该直接引用一下脚本就应该无压力兼容的,结果实际操作中是磕磕绊绊,遇到了一些问题,现在总算解决...

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

35. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 55%]

...用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触发正常,如果我想使用Loader.getRes 来载入缓存的图片应如何处理. 2...

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

36. LayaAir3D Warning : MyWater must config in CustomShaderConfig File. [ 55%]

LayaAir引擎 LayaAir3D Warning : MyWater must config in CustomShaderConfig File. 1.在Unity中,自定义一个shader,然后应用到场景中去,用laya导出工具导出场景,会提示 LayaAir3D Warning : MyWater must config in CustomShaderConfig File,同时导出的场景文件中也...

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

37. Cannot read property 'load' of null [ 54%]

LayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static...

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

38. [LayaAir2]iOS设备,抖音app报错 requestAnimationFrame [ 52%]

[LayaAir2]iOS设备,抖音app报错 requestAnimationFrame 使用的Layaair引擎2.13.1    [TMG] Object {message: "at requestAnimationFrame ... message: "at requestAnimationFrame callback err1" name: "USER_RUNTIME_ERROR" stack: "construct@[native code] at f(helium.js:4:269) at ?(helium.js:4:865)...

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

39. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 52%]

...LRenderingContext' 使用1.7.15或16,在项目总增加如下几句,在layaAir内测试可以正常(以下资源是拷贝自GitHub上官网的范例包下的资源: // 创建天空盒 var skyBox:Laya.SkyBox = new Laya.SkyBox(); //清除标记,使用天空(必须设置,否则无法显...

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

40. httpRequest send返回Request failed Status:0 [ 52%]

...一玩处取排行榜时返回的用户头像URL 代码如下 var WebGL = Laya.WebGL; // 程序入口 var GameMain = /** @class */ (function () { function GameMain() { //初始化引擎 Laya.init(1136, 640); for (var i = 0; i < 4; i++) { var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(...

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