What do you want to save?
Add Code snippet
New code examples
-
C# 2022-01-29 23:16:12
use try catch in coroutine unity
using System; using System.Collections; using UnityEngine; /// <summary> /// Utility functions to handle exceptions thrown from coroutine and iterator functions /// http://JacksonDunstan.com/articles/3718 /// </summary> public st... Add solution -
C# 2022-01-26 04:01:22
start public coroutine from another script unity
using UnityEngine; using System.Collections; public class myCallTimer : MonoBehaviour { void Start() { //myTimer script attach at Main Camera, than StartCoroutine(Camera.main.GetComponent<myTimer>().Counter()); } } Add solution -
C# 2021-11-18 10:21:22
how do antibodies worrk
// Meant for use with Unity // Not even sure if this works // I have no idea what I'm doing using UnityEngine; using System.Collections; public class ImmuneSystem : MonoBehaviour { public void ProtectBody(Disease disease) { if(disease.antiBody) {... Add solution -
C# 2021-11-17 15:44:19
execute something for 5 seconds unity
StartCoroutine(GoLeft()); IEnumerator GoLeft() { // This will wait 1 second like Invoke could do, remove this if you don't need it yield return new WaitForSeconds(1); float timePassed = 0; while (timePassed < 3) { // Code... Add solution -
Kotlin 2021-11-13 13:13:24
kotlin coroutine builders
import kotlinx.coroutines.* // Asynchronous execution fun main() { GlobalScope.launch { // creates a new coroutine and continues doWorld() // suspending function } println("World !") // execution continues even while coroutine wait... Add solution -
C# 2021-11-10 21:50:15
c# zeitverzögerung
private Coroutine corutinename; corutinename=StartCoroutine(nameofcoroutinetostart()); private IEnumerator nameofcoroutinetostart() { while (true)/*to make it endless(you can delete it, if you want to call it once)/um es endlos zu machen(du kannst es w... Add solution -
Kotlin 2021-11-10 06:26:09
kotlin coroutine dispatcher
Dispatchers.Default - Different thread (if possible) It is backed by a shared pool of threads on JVM. Dispatchers.Main - Platform specific main thread (if exists). Dispatchers.IO - Thread designed for offloading blocking IO tasks to a shared pool of threa... Add solution