- Home /
Question by
soulpiper12 · Nov 14, 2014 at 01:39 PM ·
guibutton
Gui Button Turn Off Object on Click
Good Afternoon, I'm using the IGui asset. Objective: By clicking a button a cube within the scene named "CubeWind" disappears.
I know I'll have to involve code with the button and the research I've done suggests using the tool below. Beyond that I'm totally lost.
target.SetActive
Any Guidance would be appreciated
Comment
It is unclear what you want here. Assu$$anonymous$$g 'target' is a game object, you would disable that game object by:
target.SetActive(false);
Your answer
Follow this Question
Related Questions
how can i destroy a cube when i press a gui button??? 1 Answer
Turn off my GUI Box when I click a button. 3 Answers
GUI Button to a GUI slider help ? 0 Answers
Button Turns Off and On Object 1 Answer
Null reference exception[SOLVED] 1 Answer