A minimal solution for selecting entities in the unity sceneview. Tested with both URP and Built-In Render Pipeline. (LWRP and HDRP should also work)
Make sure your focus is on the sceneview (not gameview)
Point to the entity with mouse pointer
Press the '1' key (Non Numpad)
=> Inspector window should show all info for entity.
The code exists of 1 shader file and 1 .cs file.
No setup is needed, just copy the files to any Assets folder you want. (Preferably an Editor folder)
If you write a bugfix/improvement please share it here via a pull request.
BugFixes and UX improvements are appreciated.
Performance Improvements are welcome, since i'm not prioritizing those.
Additions should keep these things in mind:
No setup should ever be needed.
Should never impact the game.
- Confirm works with High Definition Render Pipeline (HDRP)
- Visual selection feedback
- Use left-click for selection (OnMouseUp event currently gets consumed by the SceneView, not sure a workaround exists)
- Low Priority: Performance Improvements