Gizmos disappeared with no way of turning back on

  • A* version: 5.2.4
  • Unity version: 2022.3.51 HDRP

I’ve been using the asset for a long time and it’s great. About a week ago all of the assets gizmos stopped working (can’t see the graph, can’t see calculated paths etc.). This is while;

  • graph scanning and path calculations are working as expected
  • other gizmos (unity/assets) are working as expected
  • visibility “eye” is turned on on the grid
  • show graphs turned on in component (on-screen button also turns on)

I’m not sure what triggered this change but all gizmos worked fine and now no gizmos show up only for this asset.

Thanks for any help!

Hi

This is likely due to some HDRP setting. There’s a surprising number of ways to accidentally break various functionality when using HDRP. Did you change anything recently in those settings that could have an effect?
Also try upgrading the HDRP package to the latest version if you can.

We were optimizing some graphical aspects so we definitely did change some settings, but now we can’t find which setting needs to be reversed. Unity 2022, HDRP and Astar are all up to date so unfortunately that’s not going to be the fix.

I just tested simply cloning the unity project folder and opening that and that seems to fix the issue, does that help narrow things down? Making this copy project the main projects is the last thing I want to do because of all the git/sync issues it will create but at least it’s a way out if all else fails.

Edit1: Just did a full re-import of the original project and that seems to have fixed it for now. Noticed the 2 materials from your drawing resources show changes on github, maybe that was the issue?

Edit2: Did some digging to see what caused it and I think it was simply that HDRP quality asset > support custom pass was switched off unintentionally by someone working on optimization, altho I’m not sure why a full re-import would fix that.

No idea why a full re-import would fix that. But if custom pass support is switched off, that will definitely kill gizmos.

Seems to work fine now, thanks for the reply!

On a side note, is there a way to display the grid graph surface or outlines to the player in game?

There’s no built-in way, I’m afraid.

You can get the outline here, if you want: GetContours - A* Pathfinding Project

Thank you for the fast replies, youre awesome! I have another question regarding multiple graphs in the same scene vs having one giant graph for everything but I’ll put that in a new thread (for better search archiving) once I do a bit more testing.