Slider in one scene dont change the value in the other scene

sooo basically it my first game and i want to create a slider which will control the the the sensitivity of the player buuuttttttt when i have made a slider i cant find a way to attach it to my touch controls which is in a different scene when i searched on google it told me to do PlayerPref but i am a complete beginner soo i dont know waht to do

If you want to use a variable in an other scene you will need to keep it between your 2 scenes. You can either use this line in one of your scripts to keep your gameObject loaded:


You can also save your value in a file and load it from the next scene.