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

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

3591. 使用百度地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...andler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始...

来源: Laya3.0_文档 发布时间: 20251010

3592. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 41%]

...mber[]) { if (points.length < 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1...

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

3593. 微信小游戏报错 the .lh file root type must be Scene [ 41%]

...ther function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at Scene.__proto.onAsynLoaded (http://127.0.0.1:62629/game/code.js:81644:10) at ResInfo.onLoaded (http://127.0.0.1:62629/game/cod...

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

3594. 重要问题:关于苹果审核被拒 [ 41%]

...这两个,但是会报 ld: library not found for -lJavaScriptCore clang: error: linker command failed with exit code 1 (use -v to see invocation)。 helloworldlv • 2018-03-21 11:00 build settings /other linker flag 里面把删的库删掉 helloworldlv • 2018-03-21 11:03 如果再报错在buil...

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

3595. Box2D使用Destory join报错? [ 41%]

... 使用box2d物理系统 在destory被collider绑定的sprite时会报错 Error preload.js:55     at Object.box2d.b2Assert (file:///D:/develop/layaspace/smallballs/bin/libs/laya.physics.js:38:57)     at box2d.b2World.DestroyJoint (file:///D:/develop/layaspace/smallballs/bin/libs/laya.physics.j...

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

3596. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 41%]

...dler); this.socket.on(Event.CLOSE,this,closeHandler); this.socket.on(Event.ERROR,this,errorHandler); } public function connect():void { if(!this.socket.connected){ this.socket.connectByUrl("ws://127.0.0.1:9000");//建立连接; } } public function send(msg:String):void { if(this.socket.connected){...

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

3597. Resources already exist,is repeated loading 加载特效报重复加载 [ 40%]

...ng: D:/myLaya/myLaya/bin/res/threeDimen/particle/2d.lh laya.core.js:16639 [error]Failed to load: null 为什么加载自己从unity导出的特效会报已经存在不能重复加载?从打印的1111来看加载方法只调用过一次,但是用官方给的特效就不会报错 particleNew.part ...

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

3598. native打包Android APP 运行一段时间opengl报错导致app重启 [ 40%]

...8:52.456 1657-1657/com.android.bluetooth E/BluetoothMapService: Unexpected error! 2018-11-23 17:28:52.459 10354-10354/com.xzgame.rainbow E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudio...

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

3599. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 40%]

...options, Laya.Handler.create(this, onSuccess), Laya.Handler.create(this, onError)); } function showMessage() { var tex = new Laya.Text(); Laya.stage.addChild(tex); tex.text = "单击舞台播放和暂停"; tex.color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "center"; tex.si...

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

3600. [临时解决]bug?加载sk问题 [ 40%]

...re.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。   怎么解决?   我上传了用到从骨...

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