internal static void OnReload() { GCHelperHotReloadData hotReloadData = HotReload.Data.Get <GCHelperHotReloadData>(); if (hotReloadData != null) { foreach (FWeakObjectPtr weakObj in hotReloadData.Objects) { if (weakObj.IsValid()) { UObject obj = GCHelper.Find(weakObj.GetPtr()); if (obj != null) { obj.OnAssemblyReload(); } } } } }