🤔 Unity, huh, how?

🤔

Physics queries: Visual debugging

Physics debugger

Use the Physics Debugger to visualise your queries in the Scene view.

Physics Debugger showing queries

Physics Debugger showing queries in the Scene view

Debugging functions

Alternatively you can use a visual debugging API to draw these queries, which can create more persistent or elaborate visualisations.

information

Be particularly cautious to provide the exact same values you use in your query.

Common mistakes resolved by visual debugging

Watch out for these common mistakes: