- Home /
Question by
Fr33zerPop · Oct 16, 2016 at 07:20 AM ·
soundmethodspersistent
How do I access methods and variables in a *Don't destroy on load* object?
I have a SoundManager Singleton that gets created in Scene 1, and is persistent with Don't destroy... Now I want to access it's ToggleSound method through a button I've created in Scene 2, but in the Inspector, there's no GameObject to link the Button OnClick to. How do I access this GameObject that won't be there until it persists at runtime?
Comment
Your answer
Follow this Question
Related Questions
can Unity Play WMA sound files? 2 Answers
can we add sound to animation 3 Answers
Let Sound Clip wait for x seconds before sounding ? 1 Answer
Particle Sound Emission 1 Answer
button action script 2 Answers