- Home /
Activating another scene's script?
Hello. I am using toolbars for the options menu in my game (difficulty, ship, etc.). How can I make it so that when a button is active, it activates a component in the NEXT scene? I could try to use "do not destroy on load" but that would also keep the GUI elements on the screen. Any ideas? Thanks.
Answer by The_r0nin · Dec 06, 2010 at 02:21 PM
You could store a static variable in a separate script. When the button is active, it messages the separate script, then you "Don't Destroy on Load" the separate script and have your scene script check in OnStart for that value. Then it can load/activate the required component.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
I can't click to an UI button. 3 Answers
Unity 3d(Space) Questions 1 Answer
Scene changing 1 Answer
MouseButtonDown on button (Far away) NEED: Range for button 2 Answers