UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


descriptionTriggering animations using time and date EmptyTriggering animations using time and date

more_horiz
Hi All, first of all please bear with me if i ask any really obvious questions, i'm quite new to Unity and coding in general!

I have a cube that i can get to change from white to a pulsing yellow using an animation. I've also seen colliders used to trigger certain animations, Is it possible to trigger this animation using a time and date is set on an internal calendar/ computer calendar?

Thanks in advance Smile

descriptionTriggering animations using time and date EmptyRe: Triggering animations using time and date

more_horiz
The function "System.DateTime.Now" give the date and the time of the realtime clock.
Then you have just to compare with a defined date/time to trigger an animation.
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply