I have created a java script gui in my unity project, a tool bar with a number of buttons that acttivate different modes (eg, tour, flight, sun, build). see attached image, I already have a seperate “build” script that works when I press the tab key, but I also want this build mode to become availabe when I press the block build button seen in my attached image. how do I link the press of this button to a previously created script?!
in the script you want to link, add the gui function. I literally mean add the part that controls GUI in script 1 into the script you need to link. Since it is a code rendered GUI, you can render it in ANY script
function OnGui(){
//your GUI Code
}