Accessing my 'Options' panel from another script.
Hey guys. I've created a pong clone with the following: Main Menu (New Game, Options, About, Quit). Level1 (Able to press ESC which opens a pause menu panel (Resume Game, Options, Quit to Main Menu).
So far I've duplicated my Options Panel from the Main Menu scene, and pasted it in the Level1 scene. Is there a better way to do it? Can I call the Main Menu Options panel from my Level1 scene? I guess creating an Options prefab would be another idea?
I would like to get it sorted before I work on my options menu (Sound ON/OFF, Sound adjustable via slider, Music ON/OFF, Music adjustable via slider) - hopefully I can implement it so it covers all scenes.
This is in C# by the way, in Unity.
Answer by Yuzuke · May 17, 2017 at 12:48 AM
yes you definitely need to create a OptionPanel prefab and instantiate it in different scenes when you need it.
Your answer
Follow this Question
Related Questions
How can i add a new item in dropdown options ? 1 Answer
How to Setactive(true) the other class ? 0 Answers
OSX: The application is missing required entitlement com.apple.developer.icloud-services 1 Answer
Unity Ads not showing in editor (dummy ad placement is not showing too) as well as in the build. 2 Answers
Collision problems 0 Answers