Hello guys!
I’m new to unity and I’ve got a question.
I’ve got a menu including a couple of buttons.
I’ve got a button (let’s call B1 from now on) that sets a certain material to an object by setting “bool enabled” for a script attached to the object, and then removes B1 from the scene and activates another button (B2) in the scene by messing with “GameObject.SetActive bool enabed” for the two buttons, so that for the player it looks like one button turning on and off. B1 and B2 work perfectly fine!
I’ve got another button (B3) that has to perform a couple of tasks including selecting B1. So, what I do is that in B3, I try to select B1 (like shown in the picture) but it just doesn’t work!
What am I missing here?! can anyone help me out so that I won’t have to define for B3 everything B1 does?
