I have what I think is a simple problem but I'm hitting my head against the wall with it. Basically I am creating a large number of buttons to control various aspects of my program in a c# script using If GUI.Button (etc) and I am wanting to add a hover tooltip to the buttons. If the buttons were static I could add the necessary event triggers and build a windows etc. My thought was to inherit the button and add the necessary functionality, but I'm up against the wall. can anyone give me any pointers please.
Add an UI Event Trigger component to the Button and select which method you like to call at the corresponding event you desire. http://docs.unity3d.com/ScriptReference/EventSystems.EventTrigger.html This way you just need to add a script with the Tooltip functionality.
Hi my question is how do I do this when I'm creating the button dynamically from a script and not as a static button?