- Home /
Problem is already fixed
how can i change text value of a canvas Text in runtime?
im trying to change the value of my Text object while the game is running so text.text = 5.toString()
at the moment i have this code and every time i click on a object it will open the UI but it does not update the numbers when i debug.log the values i do get numbers greater than 0 in the amount array
for(int i = 0; i<_texts.Length; i++) { if (amount.Length == i) break; _texts[i].text = amount[i].ToString(); }
text.text = is the right way to update the text.. Where are you calling that? can you show your code?
Answer by nils622 · Apr 03, 2021 at 01:15 PM
Tnx for trying to help but its already fixed i had multiple array and the text looped true all of them so it only put the text in from the last array
Follow this Question
Related Questions
Export objects to a .3DS file at runtime 1 Answer
Lens Flares shines through (maya)-object geometry.. 1 Answer
Bake Ambient Occlusion in Unity at Runtime 1 Answer
drawing spheres at runtime 1 Answer
Attach Contoller At runtime 2 Answers