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

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

181. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 66%]

... super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &...

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

182. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...ent.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sprite2的MouseEnabled的值:true } test2(e: Laya.Event) { console.log('mou...

来源: Laya3.0_文档 发布时间: 20251010

183. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 65%]

...ld(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, this, function () { console.log("SHOW"); dialog.show(); }); } })();http://layaair.ldc.layabox.com/demo/?UI_Dialog 直接到示例下跑一跑就知道了... @cuixueyin...

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

184. Image.loadImage 方法加载问题 [ 65%]

...oData:any )   {    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( ...

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

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

....tMap.tileWidth); 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.draw...

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

186. this.bitmap.activeResource is not a function [ 65%]

...ize(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.design...

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

187. 内存释放问题 [ 65%]

...eNames[i]; let curMem: number = Laya.Stat.currentMemorySize// >> 20; console.log("curM:", curMem); path = bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName); bigao.control.SkillControl.instance._skillView = null; Laya.loader.clearRes(path, true); // 为什么这...

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

188. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 65%]

...', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue...

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

189. 关于zOrder层级问题 [ 65%]

关于zOrder层级问题  console.log(arr1.zOrder); //打印结果:3         console.log(this.target.zOrder); //打印结果:10   最后运行时舞台上显示的是arr1(sprite)在target(sprite)之上。 但是在编缉器上显示是正常的。 arr1对象是运行时动态添...

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

190. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 65%]

...,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.AnimatorState(); //设置动作状态的名称 state.name = arrString[2]; // 开...

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