Unity C# How to add a Delay / Timer
Channel:
Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=8CVJy9GNFBY
This will show how to add a delay before a task is performed.
The key to this is the IEnumerator routine. It is outside of the Start or Update sections. You designate a name for it and then trigger it by using the StartRoutine statement.
In this case, I use two IEnumerator routines, one to make a block appear, the other to make it disappear.
Other Videos By Design and Deploy
2015-10-23 | Anime Studio Pro - Opacity and Radius Blur - Discoloration Example |
2015-10-22 | Anime Studio Pro -Switch Layer - Using Switch Layer to Emulate 3D Objects |
2015-10-17 | Anime Studio Pro - Changing Opacity over Time - Example 1 - Ghost |
2015-10-12 | Anime Studio Pro - Bouncing and Distortion - Ex 1-Translate Point Tool |
2015-09-13 | Unity C# - GetComponent Tutorial Example 1 |
2015-08-25 | Unity C# - Prefabs and Instantiation - Example 2 Projectiles |
2015-08-24 | Unity C# - Creating and Instantiating Prefabs - Example 1 Tiling |
2015-08-21 | Unity C# - Collision detection and destroying objects |
2015-08-20 | Unity C# - Mouse Over Text / Clickable text |
2015-08-19 | Unity C# - Full Screen Fade |
2015-08-17 | Unity C# How to add a Delay / Timer |
2015-08-16 | Unity C# Change Object Transparency |
2015-08-16 | Unity C# How to rotate an object using key press |
2015-08-16 | Unity C# Move an Object with a Key press |
Tags:
Unity (Software)
C# (Programming Language)