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

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

1. onTriggerEnter(other: any, self: any, contact: any) 参数使用 [ 100%]

onTriggerEnter(other: any, self: any, contact: any) 参数使用 onTriggerEnter(other: any, self: any, contact: any) 参数使用 2020-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 ...

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

2. 微信小程序调试器运行正常,真机调试报错 [ 87%]

...序调试器运行正常,真机调试报错 VM128:1 gameThirdScriptError self is not defined;at api request success callback function ReferenceError: self is not defined at new s (game.js:6:16022) at  (../../src/script/GameUI.js:10:1) at  (../../src/script/GameUI.js:10:1) at  (../../src/script/...

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

3. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 80%]

...rigBody做距离关系绑定 代码片段:  onTriggerEnter(other: any, self: any, contact: any) {  let pointes = contact.getHitInfo().points;  let potSelf = new Laya.Point(pointes[0].x, pointes[0].y); let potOther = new Laya.Point(pointes[0].x, pointes[0].y); self.owner.globalToLocal(potSelf);...

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

4. 多个模块之间相互嵌套import,导致运行报错 [ 78%]

... void { this.emit('attack'); } } Manager.ts public CreateCat(): void { let self = this; let cat = new Cat(); cat.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); }   2019-02-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前...

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

5. 滤镜怎么取消?会报错! [ 77%]

... (laya.core.min.js:1) at CreateGuai.js:103 a372853273 • 2018-02-10 12:12 self.filters = []; 给怪物添加滤镜,取消后再添加,多操作几次就这样了。 qian • 2018-02-10 12:13 你看看是不是中英文括号的语法什么的问题 qian • 2018-02-10 12:14 多操作几次有...

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

6. 这种报错,什么情况下会出现? [ 75%]

...博 QZONE 微信 Apple 赞同来自: 应该访问域错误,在拿不到self的域进行了调用,建议加点日志,看到哪就断掉了。 2018-05-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 vincent 相关问题 编译调...

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

7. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 72%]

...); Laya.timer.loop(150, this, showframe); })(); function showframe() { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(dat...

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

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

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

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

...自定义计算工具包--> <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

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

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