/// <summary> /// Loads the underlying native type info for generated types (types tagged with UMetaPath) /// This loads the class address/properties/functions/offsets /// </summary> public static void LoadNative() { // Clear NativeReflectionCached just in case it is holding onto old values. NativeReflectionCached.Clear(); foreach (KeyValuePair <Type, UMetaPathAttribute> type in Native) { LoadNative(type.Key, type.Value); } }
/// <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); } } }