Regarding the duplicate:
I got an answer for this over at GameDev.SE. It's pretty clear that this is not a duplicate, though it is now asked on both sites.
We have this code:
private IEnumerator SomeFunction(/*lots of arguments*/)
{
// Wait until the local dictionary is loaded
while (!BundleLibrary.Instance.LocalBundleDictionaryLoaded)
{
yield return null;
}
//Wait for remote dictionary loaded if needed
if (BundleConfig.Instance.WaitForRemoteDictionary)
{
while (!BundleLibrary.Instance.RemoteBundleDictionaryDownloaded)
{
yield return false;
}
}
// more code below here
}
I get that yield return null
means the routine will pick up where it left off on the next frame.
But I don't really understand what the yield return false
does. I haven't seen it, but I wouldn't know what yield return true
would do, either.