Hello,
I am currently working on an In-Editor tool which given some area constraints is meant to populate a space with assets. I can add any kind of manual extent representation like a collider to the assets if necessary. These objects should be randomly placed and then checked for collisions. If a collision is happening, I want to revert the placement and try again. All of this must run in the editor and not while the game is running.
My understanding is that typical collision detection in Unity is dependent on the Physics processes running, which in turn requires the game to be running. This is naturally not given with my script, which uses the ExecuteAlways attribute and is executed in the editor. I don’t require anything necessarily event based, as a one-time check between two objects to see if they collide would be sufficient.
What options do I have for this? In the worst case, I might switch to an in-game implementation of my approach, but would very much prefer the in-editor approach.