public static void Clear() { gatheredUnrealTypes = false; Assemblies.Clear(); AssembliesManagedTypes.Clear(); AssembliesNativeTypes.Clear(); AssemblySerializedModuleInfo.Clear(); processedAssemblies.Clear(); All.Clear(); Managed.Clear(); Native.Clear(); AllByPath.Clear(); ManagedByPath.Clear(); NativeByPath.Clear(); }
/// <summary> /// Loads the underlying native type info for generated types (types tagged with UMetaPath) /// This loads the class address/properties/functions/offsets /// </summary> internal static void LoadNative(Assembly assembly) { // Clear NativeReflectionCached just in case it is holding onto old values. NativeReflectionCached.Clear(); Dictionary <Type, UMetaPathAttribute> nativeTypes; if (AssembliesNativeTypes.TryGetValue(assembly, out nativeTypes)) { foreach (KeyValuePair <Type, UMetaPathAttribute> type in nativeTypes) { LoadNative(type.Key, type.Value); } } }