protected virtual void ClearCache(bool hideIfExpanded) { if (_CachedPrefabAdress != null) { _CachedPrefabAdress.ClearCache(); _CachedPrefabAdress = null; } if (m_CustomFramePrefabAddress != null) { m_CustomFramePrefabAddress.ClearCache(); } if (hideIfExpanded && IsExpanded()) { _CacheDialogFrame.activity.destroyOnHide = true; _CacheDialogFrame.Hide(); } #if UNITY_EDITOR Resources.UnloadUnusedAssets(); #endif }