Author Topic: Unable to select cells in editor that aren't on a mesh  (Read 23 times)

joelatgrimthinking

  • Guest
Unable to select cells in editor that aren't on a mesh
« on: December 04, 2019, 10:45:24 AM »
I've been using the Terrain Grid System (which is incredible and has saved me so much time!) up to this point with Terrain game objects and haven't had any problems selecting cells in the editor. However, I recently started working on an indoor scene and, instead of using a Terrain game object, used a root game object containing many floor tile meshes as the "terrain" for the grid. The grid generated as expected, but I noticed that I was unable to select cells in the grid that weren't on top of something with a mesh.

Here's a screenshot of what I mean:


You can see the blue border around all the floor tiles that are under the root game object. If I click any of the cells inside the blue outline, things work as expected, but if I try to select any that fall outside of the blue outline, nothing happens.

For some background, how I'm using the system is overlaying a single grid over the level and then marking individual cells invisible to customize the look of the grid. In this case, I'd like to select all the cells that fall outside the map and mark them invisible, but I'm unable to select them.

It seems to be that a click event isn't registering unless there's a mesh under the cell? I say that because if I add a plane game object under the root to effectively make the area a square so that all cells are on a mesh, then I can select them.

Is there a simpler workaround for this other than what I'm doing? If not, I can make do!

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5137
    • View Profile
Re: Unable to select cells in editor that aren't on a mesh
« Reply #1 on: December 04, 2019, 12:09:51 PM »
Hello,
Nice setup!
Could it be the "Respect Other UI" checkbox?
Regards

joelatgrimthinking

  • Guest
Re: Unable to select cells in editor that aren't on a mesh
« Reply #2 on: December 04, 2019, 02:29:17 PM »
I tried with that setting checked and unchecked, but neither seemed to have any effect on the behavior.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5137
    • View Profile
Re: Unable to select cells in editor that aren't on a mesh
« Reply #3 on: December 05, 2019, 05:10:54 PM »
Could you perhaps send me a repro? It doesnít need to be the full scene but the minimum to reproduce the issue.

joelatgrimthinking

  • Guest
Re: Unable to select cells in editor that aren't on a mesh
« Reply #4 on: December 06, 2019, 06:52:33 AM »
Sure! Here's a new project demonstrating the behavior:
https://drive.google.com/open?id=1uRrKpbtSaGwX_Tpbo2XxRHXu-itLX5e7

Only the cells with a cube under them are selectable.

Hope this helps, and thanks for looking into this so quickly!

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5137
    • View Profile
Re: Unable to select cells in editor that aren't on a mesh
« Reply #5 on: December 06, 2019, 07:47:49 AM »
Thanks so much! Iíll get back to you next week.