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

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

2271. Button 添加事件不执行? [ 69%]

...lStroke = 10; rightBtn.x = 100; rightBtn.y = 200; rightBtn.on(Event.CLICK, this, clickHandler); rightBtn.clickHandler = Handler.create(this, function () { console.log('click handler'); }); function clickHandler () { console.log('on click') } Stage.addChild(rightBtn);  请问一下,为什么事件...

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

2272. load 跨域请求 [ 69%]

... Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个...

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

2273. 微信小游戏下Laya.Browser.window.protobuf可以用吗? [ 69%]

....protobuf可以用吗? let protoBuf =  Laya.Browser.window.protobuf; this.proto = await  protoBuf.load("res/protobuf/game.proto");   var HeartBeatReq = this.proto.lookup("HeartBeatReq");         var body = HeartBeatReq.create({             "time":1         }); ...

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

2274. iOS循环播放ogg背景音乐问题 [ 69%]

...源码位置: AudioSoundChannel 类的 play() 方法:   if("play" in this._audio)     this._audio.play();   不知道为什么,一次完成之后这个audio的play接口会去解析wave格式的内容。 而没有预加载的情况,情况是正常的。   非常费解。   有任何建...

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

2275. 请教:unity2017导出动画加载报错 [ 69%]

请教:unity2017导出动画加载报错 18572行的 this 有值,但this._entity没有值,为undefined ; 请教一下这是什么问题,是否需要unity版本降级? 附件 : --> 2018-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

2276. sp.emitter.stop 在 app 下会报错 [ 69%]

...layaplayer下遇到了,于是我使用​下列代码便解了问题。//this.sp.emitter.stop(); this.sp.stop(); 2017-09-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 目前1.7.11beta版本的引擎库和0.9.10版本的LayaNative下是没有问题的,可以更新看下 20...

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

2277. 绘制的直线如何修改它的位置,使它产生连续绕一个点旋转的效果 [ 69%]

...如何修改它的位置,使它产生连续绕一个点旋转的效果 this.gameView.sp.graphics._one[2] = x; this.gameView.sp.graphics._one[3] = y; 我这样写能实现,但是感觉不是正确的方法! IDE中有看到toX和toY属性,但是代码中不知如何获取 2018-02-23 添加评...

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

2278. 微信小游戏,子域问题。 [ 69%]

...小游戏,子域问题。 __static(MiniFileMgr, ['fs',function(){return this.fs=wx.getFileSystemManager();},'wxdown',function(){return this.wxdown=wx.downloadFile;} ]);   报错说没有这个方法:wx.getFileSystemManager() 附件 : --> 2018-07-25 1 条评论 免费帖 --> 分享 微博 QZONE ...

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

2279. loop 我想在回调里暂停,然后在开启 [ 69%]

...想在回调里暂停,然后在开启 var i = 0;  Laya.timer.loop( 500, this, function () {       i = i < (arr.length - 1) * 6 ? i + 1 : 0;       this.noticeList.scrollBar.value = i * 5        if (i % 6 == 0) {         console.log("在这里停止", i)        }       el...

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

2280. 官网的api有点看不懂,onClosed这个方法怎么调用啊 [ 69%]

...好像是为了js和As3写的。 关于dialog组件,关闭后的事件 _this.onClosed(function () { console.log("动画关闭后的请求") })this指向dialog,但是点击空白区域触发不了,可以解答一下怎么调用么。 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微...

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