How to DESTROY AN OBJECT AFTER certain TIME in Unity

Опубликовано: 28 Сентябрь 2024
на канале: GDT Solutions
1,001
20

In this video we see how to delay the destruction of an object in Unity, I briefly mention that this could be achieved either by Invoking a method or by defining a coroutine with a delay, but in fact it could be achieved in a very simple way, using the second overload of the Destroy function.

The second parameter of that overload is the delay time for the object to be destroyed.

____________________________________________________________
PORTFOLIO: https://gamedevtraum.com/en/portfolio...
CONTACT:   / gamedevtraum  
LINKEDIN:   / gamedevtraum  
DONATIONS
-You can download one of me free assets for Unity from my ITCH page and leave a donation
-You can donate with the THANKS button on every video
____________________________________________________________