大约有 1,374 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1168) Laya2.0_文档(69) Laya3.0_文档(67) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...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
...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
...gerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出,player设置了点击z方向向前移动 2、GameManager.ts:40-41行获取被碰撞体、72-94行管理被碰撞体和给每个被碰撞体添加了刚体,同时 isTrigger =true,isKinematic=true,绑定了...
来源: Laya_社区 发布时间: 20200728
...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
... 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
...); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,不知是怎么回事会导致读取不到或者读取时出现乱码 在laya.bkadpter.js的 var LocalStorageAdpt=...
来源: Laya_社区 发布时间: 20181030
...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
...); 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
...同来自: 获取触发事件我摸索出来了 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
...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