MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetManagedType

Method GetManagedType

Source/Editor/Scripting/TypeUtils.cs:274–290  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 10

ToVariantTypeMethod · 0.80
ReadVariantTypeMethod · 0.80
ReadVariantMethod · 0.80
PasteMethod · 0.80
CreateMethod · 0.80
OnInitMethod · 0.80
OnKeyframesPasteMethod · 0.80
OnKeyframesPasteMethod · 0.80
LoadTrackMethod · 0.80
LoadTrackMethod · 0.80

Calls 2

GetAssembliesMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected