Sound settings

Hello gents

In the main menu I have a settings/options page. In there I have the music and SFX volume slider. They are set up with playerprefs and it works.

Now to my noob question….
How do I copy / duplicate the exact same settings / options menu so I can use it inside the games pause menu??

Hope it makes sence.
Thank you

Save the menu as a prefab:

Thanks.

so save it as prefab and then just drag it into the new scene?

The playerprefs settings will carry over as it is unique values but what if I make change to the UI layout in one scene will that affect the other scene with same prefab?

Yup. Any change you make to a prefab will be updated everywhere that prefab is used.
Just make sure you edit the prefab asset itself and not the copy of it in a scene, otherwise the changes will only apply to that specific copy.

1 Like

Thank you so much for clearing the prefab confusion up for me.

so if I take a GO from the hierchy and drag it to my resources folder, it will become a prefab.

if I want to ensure all prefabs gets the same update I should only modify the prefab in the resources folder in project window NOT the prefab in scene as that would only change that specific instance. Am I right?

btw why when I drag my prefab into another scene the scale is all wrong? I mean some of the things I can’t even see, even if i reset transforms…

Bingo.

That’s odd. Can you share a screenshot of what it should look like and what it currently looks like?