C# Lesson! How To Get the DATE and TIME From Device  [Intermediate Tutorial - Unity 2019]

C# Lesson! How To Get the DATE and TIME From Device [Intermediate Tutorial - Unity 2019]

OXMOND Tech

5 лет назад

20,920 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yairsanchez9845
@yairsanchez9845 - 06.09.2019 04:42

how can show the name of the day? :c

Ответить
@seifmustafa2004
@seifmustafa2004 - 14.09.2019 20:19

Subscribed :D keep the great work

Ответить
@seifmustafa2004
@seifmustafa2004 - 14.09.2019 20:39

but is there a way to know the actual stats of the day ? "i mean morning or evening" not
PM and AM i mean if it's actually day or night ?

Ответить
@Trickolo
@Trickolo - 11.02.2020 18:11

thank you a lot

Ответить
@Ethan_Avila
@Ethan_Avila - 17.04.2020 00:51

Is there a way to make it update minute by minute?

Ответить
@NapkinHolder_AH
@NapkinHolder_AH - 29.04.2020 23:55

I tried it and for some reason, anytime I grabbed the text and hovered it over the large text box, it would say that there is no Tmp ext to use. Can you help me?

Ответить
@shaileshhd4964
@shaileshhd4964 - 23.05.2020 18:23

Will this work if I run in Android device?????

Ответить
@jerryspoops
@jerryspoops - 28.05.2020 01:09

Couldn't find "TextMeshPro" text in 3D objects creator. I'm using a free version of Unity 2018.1 with 3D mode. Is there a way I can see the option or how do I do the script without TextMesh?

Ответить
@charaznable3484
@charaznable3484 - 12.06.2020 09:48

May I ask how to use this in 2D project?

Ответить
@ApexArtistX
@ApexArtistX - 10.07.2020 19:22

how to countdown to a deadline ?

Ответить
@ApexArtistX
@ApexArtistX - 10.07.2020 19:24

please make it to countdown to a specific date ?

Ответить
@NicePasta
@NicePasta - 20.07.2020 03:18

Thanks for the help! I was able to just do
using UnityEngine.UI

and then use Text instead of TextMeshPro.

Ответить
@VamsiVaikuntapu
@VamsiVaikuntapu - 23.07.2020 16:12

this was good..but i need a video about how to set a timer from current time to the particular time. example :from 23/july/2020 10:00 AM(current date&time) to 25/july/2020 12:00AM(particular time) after my app ends with the particular time..i will text a message called "HI"

Ответить
@Matlik
@Matlik - 20.10.2020 21:43

Hi! I used your methond and i would like to change a particle effect in my game based on a season/month. So if its possible, how would i make it?

Ответить
@paulhoover5511
@paulhoover5511 - 23.12.2020 19:12

This does not work with Android and is prone to issues with user time modification

Ответить
@Adomas_B
@Adomas_B - 22.02.2021 03:04

But how do I change the DateTime in unityEditor? [Serializable] didn't work

Ответить
@NovaBloxOfficial
@NovaBloxOfficial - 21.09.2021 02:37

Thanks for the help

Ответить
@thilo.friedr
@thilo.friedr - 28.12.2021 00:42

Great, thank you! <3

Ответить
@Nasser_Moahammed
@Nasser_Moahammed - 31.01.2022 01:18

Thanks a lot :)

Ответить
@MetaversoJuliXR
@MetaversoJuliXR - 24.03.2022 22:21

I need to use a particular time zone for a Android Build, how can I do?

Ответить
@macleodgordon
@macleodgordon - 21.08.2022 20:52

Well, I have viewed your video at least 5 times to make sure I didn't miss anything. The code in my project is fine and compiles clean. I created a gameobject and attached the script, and I can see the public textmeshpro variable in the inspector. But when I try and drag the text gameobject to the public variable in the inspector, it won't let me drop it there. Any ideas as to why this is happening?

I am able to drag the text gameobject to the inspector if I change the variable declaration to: public TMP_Text varname, but when I run the program, I get a "Object reference not set to an instance of an object" on the line in the code which reads varname.text = time

Ответить
@p_pattedd5477
@p_pattedd5477 - 04.09.2022 14:46

I don't know why, I'm using 2021.3.9f1 and the line 'public TextMeshPro <something>' doesn't work but when its 'public TextMeshProUGUI <something>', it work as intended.

Ответить
@danielegaming8929
@danielegaming8929 - 28.09.2022 19:36

Thanks, in this video you helped me with two things I was trying to do: how to acces the date and how to edit a text from script

Ответить
@valkoinendev
@valkoinendev - 02.03.2023 18:46

Thank you wish the other 50 videos about this where as good as this video.

Ответить