I am creating a sudoku game for my class and want to have input fields for the empty cells. It will determine whether or not the answer is correct by checking whether or not the input = value. However I am struggling to figure out the code for it.
1 Answer
1You need to take InputField-type GameObject.
[SerializeField] InputField _questionField;
void FixedUpdate ()
{
if (_questionField.text == "value")
{
// do something;
}
}
It is extremely crushing the performance, a smart idea would be using the InputField.onValueChanged event.
– Patrickmol