Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. We're excited to be bringing you the newest Unity features, news, demos, and we've even got some special guests from some of the industry’s most storied franchises. Set a reminder to tune in on YouTube here
    Dismiss Notice
  3. Unity 2018.3 is now released.
    Dismiss Notice

Catch Grid Editing Events in Editor Mode

Discussion in 'Extensions & OnGUI' 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:
    570
    trudnai likes this.
  3. trudnai

    trudnai

    Joined:
    Jul 8, 2013
    Posts:
    12