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

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

311. 绘画圆角矩形的工具,直接用,不用自己去算 [ 68%]

... 0, 0, roundRadius, 0, roundRadius]); paths.push(["closePath"]); var brush:Object = { fillStyle:fillColor }; var pen:Object = { strokeStyle:borderColor, lineWidth:borderWidth }; return graghics.drawPath(x, y, paths, brush, pen); } } } 2019-01-17 1 条评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

312. Byte二进制读写(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 68%]

...络连接中,我们接收和发送网络消息。 ```typescript var msg:Object ={name:"xxx",age:18,weight:65.5,height:175}; var byte:Byte = new Byte();//实例化byte数组 byte.endian = Byte.LITTLE_ENDIAN;//设置大小端 byte.writeUTFString(msg.name);//写入数据 byte.writeByte(msg.age); byte...

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

313. worker的问题 [ 68%]

...了 "Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微博 QZONE ...

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

314. layaair-cmd publish -h 报找不到universalify module错误 [ 68%]

...Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\fp005\AppData\Roaming\npm\node_modules\lay ir-cmd\node_modules\fs-extra\lib\fs\index.js:3:11) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Mod...

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

315. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 68%]

...("============message============="); if (message is String) { var dataObj:Object=JSON.parse(message); trace("Message from server:"+dataObj+"-----------"+dataObj.status); if(dataObj.messageType){ trace("Reveive message type"+dataObj.messageType); } if(dataObj!=null){ if(dataObj.status == "S" || (dat...

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

316. macOS系统运行layaair-cmd resourceVersion报错 [ 68%]

...rocess.js:323:11)     at exports.spawn (child_process.js:502:9)     at Object.<anonymous> (/usr/local/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:60:10)     at Module._compile (module.js:652:30)     at Object.Module._extensions..js (module.js:663:10)     at Module.loa...

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

317. 小游戏取消自动缓存后MiniAdpter.autoCacheFile=false, 怎样去加载自己手动缓存的本地文件 [ 68%]

...   */         public static function getFileInfo(fileUrl:String):Object {             return MiniFileMgr.getFileInfo(fileUrl);         }                  /**          * 获取缓存文件列表          * @return          */   ...

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

318. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 68%]

...e.js:3 gameThirdScriptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property 'window' of object '#<Window>'     athttp://127.0.0.1:34658/game/libs/laya.wxmini.js:3:8     毫无规律,有时创建一个3D空项目一...

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

319. 3d动画控制子对象的显示隐藏和材质球, 如果代码控制了该对象父物体的显示隐藏就有概率报错 [ 68%]

...st已经存在这个Cube与Sphere了,导致抛出了SimpleSingletonList:[object Object] has  in  SingletonList.这样的错误,您可以勾选Cube子节点Cube与Sphere的激活状态,尽量保证Animation的初始状态与导出时状态一致来避免这个问题。 具体修改如下图...

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

320. layaAir3D插件对应的unity版本 [ 68%]

...r3D/LayaTool/LayaAir3D.cs:337) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMet...

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