display static variable in text box in new scene.

Hi hope this is clear i need to take the contents of five input fields store the inputs in static variables and move them to a new scene.
I have a script which i think is storing the variables what i need to know is how to i access the variables in a script and then display the variable in a text field in a new scene?

This is the script for making the variables im a noob to this.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class inputChange : MonoBehaviour
{
public static string name;
public static string age;
public static string hair;
public static string father;
public static string mother;

public void UserName(string value)
{
    Debug.Log("you entered" + value);
    name = value;
}

public void UserAge(string value)
{
    Debug.Log("you entered" + value);
    age = value;
}

public void UserHair(string value)
{
    Debug.Log("you entered" + value);
    hair = value;
}

public void UserFather(string value)
{
    Debug.Log("you entered" + value);
    father = value;
}

public void UserMother(string value)
{
    Debug.Log("you entered" + value);
    mother = value;
}

}

Hi! If you add static in between public and class, and remove the :Monobehaviour part right after the script name, the script itself becomes static, and viewable and changeable by every scene. You don’t even need to put it anywhere, just access the variables by going inputChange.age and you should be set! I think you have to ensure all variables and functions within the class are also static as well if you want to access them outside the script, though I’m not entirely sure.