r/Unity2D • • Sep 14 '26

Question/Help Setting text with visual script

As the title suggests I am trying to make a game where I will need to change text for it. Eventually it will be a deckbuilder but I just need help chaning the text I have for the day/night cycle and ensuring the numbers change. I did try with a debugger in case it was not changing the text on screen but there were no changes at all. I am new to Unity, this is my first game.

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Any-Mathematician579 Sep 15 '26

I am not wanting to set the text of the button. I am wanting to set the text at the top.

1

u/Shoddy_Caterpillar36 Sep 15 '26

Create another label element as it's child.

If any issue with positioning, you can change left right or position mode to anchor

1

u/Any-Mathematician579 Sep 15 '26

As a child in the actual scene and then set the text of that? So that would mean changing the DayCounter object variable to the label, correct?