V
V
vdanilin02019-12-25 18:31:59
C++ / C#
vdanilin0, 2019-12-25 18:31:59

How to make text in 2D unit increase by 1 every second?

I'm making a game where I need a scoring table and every second is one point
. We need to make Text increase by 1 every second in a 2D unit.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Gaydak, 2019-12-25
@vdanilin0

read the documentation about
Update
also find about
Time.deltaTime
UI.Text (or any other text where you are going to enter)
and then create a timer and put its value in the text field - you should be able to handle it.
If you don't succeed, try again or quit.

5
50Dreams, 2019-12-27
@50Dreams

There is a much easier way. Use coroutines!
https://docs.unity3d.com/ru/current/Manual/Corouti...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question