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

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

11. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 90%]

...; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true时,是否可穿透。默认值为false...

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

12. Laya.URL.basePath加载不到网络资源 [ 90%]

...=================     打印: rn]Retry to load: res/atlas/images.atlas console.warn @ VM1768:1 __proto._endLoad @ code.js:13304 onLoaded @ code.js:13291 (anonymous) @ code.js:13283 __proto.runWith @ code.js:720 __proto.event @ code.js:494 __proto.onError @ code.js:12784 __proto.runWith @ code.js...

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

13. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 89%]

..._proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) { // console.log("audioBuffer is null",this.u...

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

14. dialog里面的内容怎么不能添加到舞台 [ 89%]

...ood: { skin: 'comp/food' + foodid + '.png' }, food_txt: {text: foodtxt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例...

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

15. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 89%]

...d, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); });   b)、创建并编写脚本 tools-publish.js#!/usr/bin/env n...

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

16. tiledmap有时尺寸不正确 [ 89%]

...ewPort(this._mViewPortX, this._mViewPortY, Browser.width, Browser.height); console.log(`ViewPort=${this._mViewPortX},${this._mViewPortY},${Browser.width},${Browser.height}`); console.log(`Map=${this._mTiledMap.width},${this._mTiledMap.height}`); if(++this._mTest === 2){ console.log("the second call....

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

17. [LayaAir3]list.selectHandler [ 89%]

...一index的选项    private onSelect(index: number): void {         console.log("当前选择的索引:" + index);         let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;         if(checkBoxItem!=null){                       ...

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

18. 保存数据的数组在回调的时候变为undifine [ 88%]

...t[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console.debug("创建的实例的数量::"+_heroItemList.length); } private function onSelectedHeroChange():void { _curSelectedHeroId = []; _curSelectedHeroProp = []; console.debug("当前保存的实例::"+_heroItemList); } ...

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

19. destroy节点后,报错 [ 88%]

...@param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChi...

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

20. 在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题 [ 88%]

...er.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两个居...

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