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

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

1081. 关于图集和配置文件(json || atlas)的问题 [ 67%]

...载,但是 var resArray:Array<any>=[ {url:"h5/UI.atlas",type:Laya.Loader.ATLAS}, {url:"h5/UI/so_main_base.png",type:Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray,Laya.Handler.create(this,initUI)); 单图就是so_main_base.png,死活就加载不出来, 报错 [warn]...

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

1082. 摄像头,系统相册 [ 67%]

... ohkei • 2017-08-03 14:19 @qq2503995928:我做过,就是用<input type="file"......... qq2503995928 • 2017-08-03 14:23 @ohkei:能否给我一个demo 感激不尽 ohkei • 2017-08-03 14:27 @qq2503995928:就是用上面的方法啊,你试一下就知道了 qq2503995928 • 2017-0...

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

1083. unity导出的ls和lh文件发布到微信小程序,用微信开发者工具打开报错 [ 67%]

...发者工具(v1.02.1802080)里报错,错误为"Scene: the .lh file root type must be Scene,please use other function to load this file."或"Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file." 跟了一下,发现__proto.onAsynLoaded这个function接收...

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

1084. [LayaAir2]Laya2.13.8导出ohos项目不支持armeabi-v7a吗 [ 67%]

...包到鸿蒙的折叠虚拟机上会有In the module named entry, the Abi type supported by the device does not match the Abi type configured in the C++ project.报错,应该是因为不支持armeabi-v7a的原因? 2025-11-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1085. 跑第一个HelloLayabox出现runtimeExecutable配置错误 [ 67%]

...本代码 { "version": "0.2.0", "configurations": [ { "name": "layaAir", "type": "chrome", "request": "launch", "file": "${workspaceRoot}/bin/index.html", "runtimeExecutable": "${execPath}", "useBuildInServer": true, "sourceMaps": true, "webRoot": "${workspaceRoot}", "port": 9222, "fixedPort":false ...

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

1086. websocket连接出错 [ 67%]

... function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> <script type="text/javascript" src="js/jquery-3.1.1.min.js" ></script> <...

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

1087. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 67%]

...Transform uvTransform uvs vertices getBounds init2 Legend Class Class with type parameter Constructor Property Method Object literal Variable Function Type alias Inherited property Inherited method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115

1088. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 67%]

...然后使用`scale`属性对地图进行缩放。 示例代码如下: ```typescript //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0,0,L...

来源: Laya2.0_文档 发布时间: 20210715

1089. drawToCanvas截图在某些手机上会变暗 [ 67%]

...n/ 赞同来自: 加上cacheAsBitmap=true 没有起作用 canvas.toDataURL(type, encoderOptions); type:"image/jpeg","image/png" encoderOptions: 0.0-1.0 给toDataURL修改参数也没起作用   canvas.toBlob(function(b) { snapshot.src = URL.createObjectURL(b); },'image/jpeg',0.3); 把toDataUrl...

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

1090. Laya.URL.basePath加载不到网络资源 [ 67%]

...加载不到网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));  ...

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