Unity implements countdown and obtains system time

One: Create UGUI

1. Create a Canvas component and adjust the resolution of the Canvas and other settings. We can set the view to 2D mode.

 

2. Create a Text text component and name it Timer. We adjust the size of the Text text component, use the anchor point to set the position of the Text text component, and set the color of the Text text component.

 

3. Let’s create another Text text component and name it SystemTime system time. Our operation is exactly the same as the above step 2. See the picture for the specific effect.

Guess you like

Origin blog.csdn.net/weixin_57813136/article/details/132544626