public override void OnEnable()
 {
     base.OnEnable();
     m_brush = (BrushFortySeven)target;
     if (m_brushTileGridControl == null)
     {
         m_brushTileGridControl = new TileGridControl(target, 7, 7, BackgroundTexture,
                                                      (int tileIdx) => { return(m_brush.TileIds[s_tileIdxMap[tileIdx]]); },
                                                      (int tileIdx, uint tileData) => { m_brush.TileIds[s_tileIdxMap[tileIdx]] = tileData; }
                                                      );
         m_brushTileGridControl.AllowBrushSelection = true;
     }
 }
        public static BrushFortySeven CreateAsset()
        {
            BrushFortySeven brush = EditorUtils.CreateAssetInSelectedDirectory <BrushFortySeven>();

            return(brush);
        }