public void ReloadContent() { LongEventHandler.ExecuteWhenFinished(delegate { audioClips.ReloadAll(); textures.ReloadAll(); strings.ReloadAll(); }); assemblies.ReloadAll(); }
private void ReloadContentInt() { DeepProfiler.Start("Reload audio clips"); try { audioClips.ReloadAll(); } finally { DeepProfiler.End(); } DeepProfiler.Start("Reload textures"); try { textures.ReloadAll(); } finally { DeepProfiler.End(); } DeepProfiler.Start("Reload strings"); try { strings.ReloadAll(); } finally { DeepProfiler.End(); } DeepProfiler.Start("Reload asset bundles"); try { assetBundles.ReloadAll(); allAssetNamesInBundleCached = null; } finally { DeepProfiler.End(); } }