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

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

1081. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 67%]

...rs constructor Properties emitFromShell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new HemisphereShape(): HemisphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:...

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

1082. laya.d3.core.scene.VRScene [ 67%]

...片base64信息,可以发给服务器或者保存为图片 Sprite event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Lay...

来源: laya_api 发布时间: 20170422

1083. 关于图集和配置文件(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

1084. 摄像头,系统相册 [ 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

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

1086. 跑第一个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

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

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

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