Buttons should be easy and now they are. Collider Button is a simple component that allows any collider to become a button for use in your scene. Whether its a simple prototype that doesn’t need a GUI system in place quite yet or if you simply want an easy to use 3D-based button, Collider Buttons aims to make things simple.
Collider Button needs to know which camera is rendering the GameObject it is attached to so it can correctly RayCast against the collider. If you leave Detect Rendering Camera to true (default), Collider Button will automatically set up the correct reference to the first camera that is rendering this object. If you’d like specific control just set the renderingCamera to whatever you need.
Collider Button works for touch and mouse environments and all camera raycasting is combined to maximize performance. As always, report bugs and stay tuned for enhancements.Download