Tries to get the object type from the given full typename. Searches in-build Flax Engine/Editor assemblies and game assemblies. The full name of the type. The type or null if failed.
(string typeName)
| 272 | /// <param name="typeName">The full name of the type.</param> |
| 273 | /// <returns>The type or null if failed.</returns> |
| 274 | public static Type GetManagedType(string typeName) |
| 275 | { |
| 276 | if (string.IsNullOrEmpty(typeName)) |
| 277 | return null; |
| 278 | var assemblies = Utils.GetAssemblies(); |
| 279 | for (int i = 0; i < assemblies.Length; i++) |
| 280 | { |
| 281 | var assembly = assemblies[i]; |
| 282 | if (assembly != null) |
| 283 | { |
| 284 | var type = assembly.GetType(typeName); |
| 285 | if (type != null) |
| 286 | return type; |
| 287 | } |
| 288 | } |
| 289 | return null; |
| 290 | } |
| 291 | |
| 292 | /// <summary> |
| 293 | /// Tries to get the object type from the given full typename. Searches in-build Flax Engine/Editor assemblies and game assemblies. |
no test coverage detected