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;
}
}