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

Method GetPlugin

Source/Engine/Scripting/Plugins/PluginManager.cpp:422–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422Plugin* PluginManager::GetPlugin(const StringView& name)
423{
424#if USE_EDITOR
425 for (Plugin* p : EditorPlugins)
426 {
427 if (p->GetDescription().Name == name)
428 return p;
429 }
430#endif
431 for (GamePlugin* gp : GamePlugins)
432 {
433 if (gp->GetDescription().Name == name)
434 return gp;
435 }
436 return nullptr;
437}
438
439Plugin* PluginManager::GetPlugin(const MClass* type)
440{

Callers

nothing calls this directly

Calls 4

GetDescriptionMethod · 0.45
IsSubClassOfMethod · 0.45
GetClassMethod · 0.45
IsMethod · 0.45

Tested by

no test coverage detected