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

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

781. 怎样获取浏览器地址传过来的GET参数 [ 67%]

...多代码,直接拿来用private function getGet():Object { var url:String = __JS__('window.document.location.href.toString()'); var u:* = url.split("?"); if (u[1] is String) { u = u[1].split("&"); var gets:Object = {}; for (var i:String in u) { var j:String = u[i].split("="); gets[j[0]] = j[1...

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

782. 微信小游戏发布后,在开发者工具中报错, [ 67%]

...中报错, 报错如下: VM819:1 gameThirdScriptError Unexpected token in JSON at position 787;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 787 at JSON.parse (<anonymous>) at Function.e.getJson (http://127.0.0.1:37389/game/code.js:1:461434) at...

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

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

...cketmanger{ private static var _I:Socketmanger; public static function get Instance():Socketmanger { if(_I==null)_I=new Socketmanger(); return _I; } private static var socket:Socket=null; private var list:Array=; public function Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, t...

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

784. Camera.viewportToRay中origin与direction相等问题 [ 66%]

Camera.viewportToRay中origin与direction相等问题 目前使用的是LayaAir2.0版本做的以下内容. 我在一个脚本里继承了Laya.Script然后写了以下方法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this....

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

785. android 使用LayaAir Native SDK 0.9.13打包程序闪退 [ 65%]

...Name = com.bet51 01-13 03:14:15.044: E/ExtMediaPlayer-JNI(8475): env->IsInstanceOf fails 01-13 03:14:15.044: E/MediaPlayer-JNI(8475): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 01-13 03:14:15.044: E/ExtMediaPlayer-JNI(8475): env->IsInstanceOf fails 01-13 03:14:15.044: E/MediaPlayer-JNI(8...

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

786. 引擎1.7.6-beta,0.9.6的layanative,ios打包,真机iphone6, 发起websocket连接时失败 [ 65%]

...tgate=70251b50 2017-06-04 15:36:36.246364+0800 lsj[4079:795703] WebSocket::init m_host: XXX.XXX.XXX.XXX, m_port: XXXXX, m_path: / [1496561796:2481] NOTICE: Initial logging level 7 [1496561796:2482] NOTICE: Libwebsockets version: 1.6.0 3ca4bac [1496561796:2482] NOTICE: IPV6 compiled in and enabled [1...

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

787. Uncaught Can not find class EffectAnimation undefined [ 65%]

Uncaught Can not find class EffectAnimation undefined 假设我今天创了一个叫QQQ的EffectAnimation,放入UI某个元件底下,运行时会报错误 Uncaught Can not find class ui.test.QQQUI undefined,我根本沒有需要創建腳本來操作事情,為什麼需要找查class? 2018-...

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

788. Unhandled promise rejection: Error: Cannot navigate to invalid URL [ 65%]

Unhandled promise rejection: Error: Cannot navigate to invalid URL ******** Unhandled error in debug adapter - Unhandled promise rejection: Error: Cannot navigate to invalid URL     at Client.processMessage (/Applications/LayaAirIDE.app/Contents/Resources/app/extensions/laya-debug2/node_modules/n...

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

789. Unity3d导出的资源,用layadcc,只有.lh文件能用缓存,.lh依赖的资源始终download。 [ 65%]

...除了)   4、发现tower_111002.lh 这个资源显示  found the file in the package   5、发现tower_111002.lh 这个资源所依赖的其他资源,全部都显示为 Download   6、试了其他几个资源情况也相同,从缓存中只有.lh文件能够found the file in the package ...

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

790. 把场景中的对像删除,就会报错 [ 65%]

...read property 'visible' of null     at RenderSprite3D.__proto._childs (Main.max.js?r0.22069932534774384:33147)     at RenderSprite3D.__proto._graphics (Main.max.js?r0.22069932534774384:33079)     at NpcView.__proto.render (Main.max.js?r0.22069932534774384:54362)     at RenderSprite3D.__proto...

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