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

Method InvokeInitialize

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

Source from the content-addressed store, hash-verified

149PluginManagerService PluginManagerServiceInstance;
150
151void PluginManagerService::InvokeInitialize(Plugin* plugin)
152{
153 if (plugin->_initialized)
154 return;
155 const StringAnsiView typeName = plugin->GetType().GetName();
156 PROFILE_CPU();
157 ZoneName(typeName.Get(), typeName.Length());
158
159 LOG(Info, "Loading plugin {}", plugin->ToString());
160
161 PluginManager::PluginLoading(plugin);
162
163 plugin->Initialize();
164 plugin->_initialized = true;
165
166 PluginManager::PluginLoaded(plugin);
167}
168
169void PluginManagerService::InvokeDeinitialize(Plugin* plugin)
170{

Callers

nothing calls this directly

Calls 6

GetNameMethod · 0.45
GetTypeMethod · 0.45
GetMethod · 0.45
LengthMethod · 0.45
ToStringMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected