- Home /
can't change InputField text using textComponent
I need to change the main text of an Inputfield without fire the events attached to it (let's say onValueChange) and so I tryed to assign my text like this:
ifObject.textComponent.text = "text to change";
assuming as written in the manual this is the way to go but, nothing happens. The only way to change text is actually
ifObject.text = "this changes for sure";
Am I doing something wrong or what?
Answer by moment_um · Mar 16, 2020 at 09:23 PM
there's a method for this now
it's called SetTextWithoutNotify
so for you, ifObject.SetTextWithoutNotify("bleh!");
Your answer

Follow this Question
Related Questions
Request feedback for C# script (instantiating UI elements depending on Player Input) 0 Answers
Customize Inputfield Unity Plus/Pro 0 Answers
Hide Textselection in Scrollable Inputfield 1 Answer
Anyone know why my InputField is not being disabled? 0 Answers
How do I change "return"/"submit" button to "search" in native android keyboard in TMP_InputField? 1 Answer