Time delay C# unity
void start()
StartCoroutine(Text());
IEnumerator Text() // <- its a standalone method
{
Debug.Log("Hello")
yield return new WaitForSeconds(3)
Debug.Log("ByeBye")
}
Time delay C# unity
void start()
StartCoroutine(Text());
IEnumerator Text() // <- its a standalone method
{
Debug.Log("Hello")
yield return new WaitForSeconds(3)
Debug.Log("ByeBye")
}
delay in unity
Invoke("functionname", seconds);
// this is for C#
how to delay something in c# unity
Invoke("DoSomething", 2);//this will happen after 2 seconds
unity c# delay function
void start()
{
Invoke("DoSomething", 2);//this will happen after 2 seconds
}
void DoSomething()
{
Debug.Log("2 seconds has passed!");
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us