hello does anyone know how to make a scene with 4 input fields in it,the fields should have the default text like this: firstbox:A secondbox:B thirdbox:C fourthbox this should be the default but i want the user to change it if he wants, and when the user clicks "start" the names should be saved so that i can use them later.I already wrote the code in C# for the userinput and it works perfectly but i made it with console application i don't know how to do this in Unity though.Thank you.
Hello Spoxx. There is two children in the Input Field are called "Placeholder" and "Text", you can manipulate them. I created one script, so this is the code: Code (CSharp): using UnityEngine; using UnityEngine.UI; [ExecuteInEditMode] [RequireComponent(typeof(InputField))] public class InputValues : MonoBehaviour { public string text; public string placeHolder; // Update is called once you edited your scene void Update() { // Placeholder transform.GetChild(0).GetComponent<Text>().text = placeHolder; // Text transform.GetChild(1).GetComponent<Text>().text = text; } } This code has "[ExecuteInEditMode]" that only will reproduce this code in Edit, it will not reproduce in Play Mode, so any change that you make in this component will change in the editor, in this case, I change this two children. I putted two public variables that you can use it to take the value with other scripts. I hope this resolved your problem.