unity focus input field
MyInputField.Select();
MyInputField.ActivateInputField();
unity focus input field
MyInputField.Select();
MyInputField.ActivateInputField();
change the text of inputfield unity
using UnityEngine.UI;
public InputField example; //creates an inputfield with the name "example"
public string textToPutToInputField = "If I helped you don't forget to upvote!"; //creates a string to give its value to the inputfield
public void SetTheText() //creates a void that we can call in one of our main void
{
example.text = textToPutToInputField; //gives the value of our string to the text of the inputfield
}
//Now, it's written "If I helped you don't forget to upvote!" on the inputfield
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us