聆听 var grid:Laya.GridSprite = this.obstacleLayer.getObjectByName("grid0"); frid.hide();//无效 this.obstacleLayer.hideGridSprite(grid)//也无效