❔ UNITY When I manually execute 2 functions it works but not when executing them from 1 function.
When I run Initialize() it only works the 2ND TIME (First time only runs DestroyCities(), Second time runs both()). But If I do DestroyCities() and then GenerateCities() manually it works EVERY TIME.
Editor:
12 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
In initialize?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
The name 'thread' does not exist in the current context
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh unity I forgot because unity doesent add using system
Same problem
@Duke ???
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
HOLY SHEESH
IT WAS BECAUSE OF yield return new WaitForSeconds(0);
@Duke
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Sorry @Zenternion your message contained blocked content and has been removed!
unity sometimes is just stupid
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.