/// <summary> /// Synchronously complete the async operation. /// </summary> public void WaitForCompletion() { if (PlatformUtilities.PlatformUsesMultiThreading(Application.platform)) { while (!InvokeWaitForCompletion()) { } } else { throw new Exception($"{Application.platform} does not support synchronous Addressable loading. Please do not use WaitForCompletion on the {Application.platform} platform."); } }
public CleanBundleCacheOperation(AddressablesImpl aa, bool forceSingleThreading) { m_Addressables = aa; m_UseMultiThreading = forceSingleThreading ? false : PlatformUtilities.PlatformUsesMultiThreading(Application.platform); }
public void CanIdentifyMultiThreadedPlatforms(RuntimePlatform platform, bool usesMultiThreading) { Assert.AreEqual(usesMultiThreading, PlatformUtilities.PlatformUsesMultiThreading(platform)); }