- Home /
UI Text isn't updating text on Button click during the gamePlay [Read description],
I have a Button prefab that i am using to dynamically create buttons using script. I also have a text field UI to show the result on that. I have a script attached to these buttons & my Goal is that when a user Clicks on the button that i created, the button.text of that button should be shown onto UI text element. All seems to be working good, except the text of the button i intend to show, isn't appearing in UI text element. When the game is in play mode & i click on some button, the UI text doesn't show button text, but instead when i stop the game it then shows the button value. Meaning that my logic isn't working during the gameplay but works only after the gameplay when game stops. Please any solution? Image 1: During gameplay clicked on Button 1 Image 2: After gameplay it shows the Text of the button clicked