Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity async await

using UnityEngine;
using System.Threading.Tasks;

public class Play_audio : MonoBehaviour
{

    async void Start()
        {
  
         await Task.Delay(1000)
         Your_fncton();   
            
        }
}
Source by vionixstudio.com #
 
PREVIOUS NEXT
Tagged: #unity #async #await
ADD COMMENT
Topic
Name
3+7 =