MCPcopy Create free account
hub / github.com/Tencent/UnLua / OnMapLoaded

Method OnMapLoaded

Plugins/UnLua/Source/UnLua/Private/UnLuaManager.cpp:204–222  ·  view source on GitHub ↗

* Callback when a map is loaded */

Source from the content-addressed store, hash-verified

202 * Callback when a map is loaded
203 */
204void UUnLuaManager::OnMapLoaded(UWorld *World)
205{
206 ENetMode NetMode = World->GetNetMode();
207 if (NetMode == NM_DedicatedServer)
208 {
209 return;
210 }
211
212 const TArray<ULevel*> &Levels = World->GetLevels();
213 for (ULevel *Level : Levels)
214 {
215 // replace input defined in ALevelScriptActor::InputComponent if necessary
216 ALevelScriptActor *LSA = Level->GetLevelScriptActor();
217 if (LSA && LSA->InputEnabled() && LSA->InputComponent)
218 {
219 ReplaceInputs(LSA, LSA->InputComponent);
220 }
221 }
222}
223
224UDynamicBlueprintBinding* UUnLuaManager::GetOrAddBindingObject(UClass* Class, UClass* BindingClass)
225{

Callers 1

PostLoadMapWithWorldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected