Hi,
I'm aware about the FlashHotspots script which highlights hotspots when the input key is pressed. I'm looking for similar functionality: When an input key is pressed down (tab for instance), all hotspot text descriptions should be shown.
This is a quite common feature, especially in 2d adventure games. So I would appreciate a standard solution for this.
Comments
Instead, you can use a simple custom script to read the object's highlight amount, and display a GUI text box as needed. The Highlight script has a public function, GetHighlightIntensity (), which returns a float ranging from 0 to 1. You can therefore write a script that accesses it's GameObject's Highlight component, reads the intensity value, and displays a label if necessary.
AC.KickStarter.playerMenus.menus.Add (hotspotSnoopIcon);
You'd then have to remove the Menu from the list once you want to turn it off - I'd recommend displaying a texture or icon through an OnGUI function instead, but see if that works at least.