Skip to content

moosichu/EntitySelection

 
 

Repository files navigation

EntitySelection

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)

How to select

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.

How to use for own Project

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.

Contribution

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.

Todo

  • 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

About

A minimal solution for selecting entities in the unity sceneview.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 90.4%
  • ShaderLab 9.6%