private void UnloadUnregisterDestroy() { m_assetDB.UnloadLibraries(); m_assetDB.UnregisterSceneObjects(); m_assetDB.UnregisterDynamicResources(); foreach (UnityObject dynamicResource in m_dynamicResources.Values) { Destroy(dynamicResource); } m_dynamicResources.Clear(); }
private void UnloadUnregisterDestroy() { m_assetDB.UnloadLibraries(); m_assetDB.UnregisterSceneObjects(); m_assetDB.UnregisterDynamicResources(); foreach (UnityObject dynamicResource in m_dynamicResources.Values) { Destroy(dynamicResource); } m_dynamicResources.Clear(); m_staticReferencesMapping = null; m_idToAssetItem = new Dictionary <long, AssetItem>(); }