So i'm trying to get my head around this, and could use a little help.
I have Button-A that when pressed, should turn on/off (based on the function provided) another GameObject. I thought this could be done with UIButtonMessage assigned to Button-A, with GameObject-01 in the target slot, and then set Button-A's Function Name to 'SetActive(true)', but this doesnt work because it looks like UIButtonMessage doesn't allow variables to pass along with the function.
What is the proper way to do this? I know i could have a script attached to GameObject-01 that then has functions in it for on/off, and just call that function from UIButtonMessage, but i'm hoping that this simple functionality doesn't require the resulting target to have ANY scripts on them for turning on/off.
Is this possible? Is there a simple way to do this, with, without UIButtonMessage? Or do i need to create a script and attach it to any target object to turn it on/off?
Nathaniel Hunter
SuperTales