Simple countdown to date
Hi. I have created a "Lower third" lens with only some static graphics. And I want to have a daily countdown to a specific date (Days left) to an event taking place. I.e "29 days left to departure". I dont want any animations on the countdown (Compared to the birthday template in Lens Studio). Just a static countdown on the correct number of days left to the specific date, which I can set manually.
I tried to follow a tutorial from 2018, but it seems outdated regarding functions/objects in Lens Studio 2022.
Can anyone help me with this?
You can reference the script from the birthday template and recreate the countdown portion in your lens. What is the tutorial you tried following? A few things have been renamed, but overall Lens Studio is pretty stable and not too much is changed.
Thank you for your answer.
I have tried to follow Apoc´s tutorial from late 2018 (A good tutorial btw).
https://www.youtube.com/watch?v=LBRikjgp8BQ
I have to admit that I am new to Lens Studio. And I struggled when I didn´t recognize the names of the objects compared to my 2022 Lens Studio. I could be "self explainable" but I just got a bit lost and unsure of what to choose from the objects list, when I didn´t see the same object-names as in Apoc´s video.
The script itself looks like it will still work.
After you create the script in the resources panel, if you look over in the inspector panel (with the script selected in the resources panel) there'll be an option to open the script. Choose built-in editor and you will be able to paste the code. Make sure you save the script with ctrl-s or cmd-s.
The "Labels" are now just called "Text." "Text" can exist in 3D space (it's not 3D text, but can rotate in all 3 dimensions) and "Screen Text" exists in 2D space.
When you add the script to your scene as a script component, it'll say "On Awake" (or maybe "On Started," I don't remember the deafult) instead of "Initialized." That is fine. On Awake replaced Initialized.
Other than that I don't think there are any other differences.
modelsbymike3d, thanks for your good explanation! I finally got it working and all good :)