Search Unity

Catch Grid Editing Events in Editor Mode

Discussion in 'Immediate Mode GUI (IMGUI)' started by trudnai, Dec 14, 2018.

  1. trudnai

    trudnai

    Joined:
    Jul 8, 2013
    Posts:
    12
    Hey Guys,

    I would like to create a little helper to my level editor for my game. I use Grid and Tilemap and what I would like to do is to run some code when hovering over the Tilemap with supposedly dropping tiles on the Tilemap. So without actually the need to place those tiles, I would like to run my algorithm to see if the place is optimal in there or not.

    Is there a way to capture that hovering event in the Editor Mode and then get the Tile or Tiles that were selected from the Tile Palette?
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    592
    trudnai likes this.
  3. trudnai

    trudnai

    Joined:
    Jul 8, 2013
    Posts:
    12