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

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

461. [LayaAirIDE3]skel骨骼动画播放失败,编辑器预览没问题 [ 66%]

...Laya.SpineSkeleton();     this.skeleton.templet = templet;     console.log("动画数量:", this.skeleton.getAnimNum());     for (let i = 0; i < this.skeleton.getAnimNum(); i++) {         console.log("动画名:", this.skeleton.getAniNameByIndex(i));     }     if (this.skeleton....

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

462. UI-ColorPicker [ 66%]

...nChangeColor(colorPicker); } function onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } })();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_C...

来源: Laya_示例 发布时间: 20260303

463. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,有偿悬赏解答 [ 66%]

...gerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出,player设置了点击z方向向前移动   2、GameManager.ts:40-41行获取被碰撞体、72-94行管理被碰撞体和给每个被碰撞体添加了刚体,同时 isTrigger =true,isKinematic=true,绑定了...

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

464. [LayaAir3]Laya旧版本的TiledMap如何隐藏某一层级的格子贴图 [ 66%]

...leWidth); const gridY = Math.floor(uiPosY / this.tMap.tileHeight); console.log("点击地图格子坐标:" + gridX + "," + gridY); const tileLayer = this.tMap.getLayerByName("Ground") as Laya.MapLayer; const gridSprite:Laya.GridSprite = tileLayer.getDrawSprite(gridX, gridY); tileLayer.drawTileText...

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

465. 不打包文件夹发布问题 [ 66%]

... 2018-06-14 0 8 分享 微博 QZONE 微信 185*****853 赞同来自: 这是log输出 不知道有没有帮助 log.rar 2018-06-14 0 0 分享 微博 QZONE 微信 185*****853 赞同来自: 是我电脑问题么,莫非要重做系统 2018-06-14 0 0 分享 微博 QZONE 微信 185*****853 赞同来自: ...

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

466. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 66%]

...); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,不知是怎么回事会导致读取不到或者读取时出现乱码 在laya.bkadpter.js的 var LocalStorageAdpt=...

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

467. Image.loadImage 方法加载问题 [ 66%]

...y )   {    this._publicSpaceData = publicSpaceInfoData;    console.log( this._publicSpaceData.icon );    this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) );    this.addChild( this.bg );    this.addChild( this.btn...

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

468. UI-ColorPicker [ 66%]

...); this.onChangeColor(colorPicker); } onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } } new UI_ColorPicker();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL;...

来源: Laya2.0_示例 发布时间: 20260303

469. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 66%]

...同来自: 获取触发事件我摸索出来了   onMouseDown(e){ console.log("mouseDown "+e.target.name); } onMouseUp(e){ console.log("mouseup"); } 2018-10-29 0 0 分享 微博 QZONE 微信 coder 赞同来自: 可是 https://layaair.ldc.layabox.com/api 实在没有对js有什么描述,现在两...

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

470. 计时器-延迟调用 [ 65%]

...a.timer.callLater(this, onCallLater); } } function onCallLater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.hei...

来源: Laya_示例 发布时间: 20260303