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

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

61. 怎么集成导入mqtt.js到laya中 [ 52%]

...vate client: Paho.MQTT.Client; private message: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConne...

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

62. Swift中接入Native,执行完drawInRect后不执行update了! 附重现Demo! [ 51%]

...*)view drawInRect:(CGRect)rect {     //conchRuntime renderFrame     [self.m_pConchRuntime renderFrame];     NSLog(@"----------------------%s----------------------", __FUNCTION__); }   下附重现Demo! https://github.com/al1020119/LayaNativeSwiftOC 不知道有没有传成功,看不到...

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

63. 通过html的input类型file上传图片,然后通过FileReader获取图片数据之后设置laya的image.skin图片不显示 [ 50%]

...显示 __proto.uploaderHandler=function (files) {              var self=this; var file=files[0];              var reader=new FileReader();               reader.onload=function () {                         this.headIcon.loadImage(this.result); 或者 this.headIcon.sk...

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

64. 编译部署到layaCloud正式环境报错 [ 50%]

...llback (E:\gitApp\Felguard_TD_Server\server\gulpfile.js:348:27) at Request.self.callback (D:\新安装工具\layabox2.0\LayaAi 出错了:rIDE_beta\resources\app\node_modules\request\request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:194:7) at Request.<anonymous> (D:\...

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

65. Laya打包微信小游戏的时候,引入的外部js访问不到 [ 50%]

...自定义计算工具包--> <script type="text/javascript" src='math.self.js'></script> 打包之后,发生的bug如下: math is not defined ReferenceError: math is not defined     at http://127.0.0.1:19768/game/code.js:60:1     at require (http://127.0.0.1:19768/game/__ ... :...

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

66. Native 在iOS上支付失败的问题,及临时解决方法 [ 49%]

...der_id"]; [dict setObject:sCallbackURL forKey:@"backurl"]; [dict setObject:self.gameAppID forKey:@"gameid"]; NSData* pData = [NSKeyedArchiver archivedDataWithRootObject:dict]; [b]payment.requestData = pData;[/b]苹果官方文档(链接)中有明确提示 requestData参数:  The default value...

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

67. box2d 弹性异常 [ 49%]

...11a • 2020-03-09 14:18 你在FlyItem里添加 onTriggerEnter(other: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改成一个球,你就会发...

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

68. laya 1.0在部分android机上会报ANR [ 48%]

...o=5 tid=1 Waiting | group="main" sCount=1 dsCount=0 flags=1 obj=0x73971890 self=0x7d3e4c0a00 | sysTid=30347 nice=-10 cgrp=default sched=0/0 handle=0x7d42cd29b0 | state=S schedstat=( 13445238879 5209712503 44696 ) utm=931 stm=413 core=3 HZ=100 | stack=0x7fcb03f000-0x7fcb041000 stackSize=8MB | held mu...

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

69. App Updates for HTML5 Apps 这意味着iOS端就废了? [ 47%]

...t they expect on the App Store, we have always specified that apps must be self-contained bundles. This means that the core features and functionality of the app must be contained within the binary of the software, rather than made possible by referring users outside of the approved app, including t...

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

70. box2d引擎报错问题 [ 46%]

...e.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreate...

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