Answers for "how to creat a delay in unity"

C#
3

unity c# delay function

void start()
{
  Invoke("DoSomething", 2);//this will happen after 2 seconds
}
void DoSomething()
{
	Debug.Log("2 seconds has passed!");
}
Posted by: Guest on October-20-2021
9

delay in unity

Invoke("functionname", seconds);
// this is for C#
Posted by: Guest on March-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language