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

Method SetupCustomLoader

Source/TPSProject/TutorialBlueprintFunctionLibrary.cpp:91–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void UTutorialBlueprintFunctionLibrary::SetupCustomLoader(int Index)
92{
93 switch (Index)
94 {
95 case 0:
96 FUnLuaDelegates::CustomLoadLuaFile.Unbind();
97 break;
98 case 1:
99 FUnLuaDelegates::CustomLoadLuaFile.BindStatic(CustomLoader1);
100 break;
101 case 2:
102 FUnLuaDelegates::CustomLoadLuaFile.BindStatic(CustomLoader2);
103 break;
104 }
105}

Callers

nothing calls this directly

Calls 1

UnbindMethod · 0.45

Tested by

no test coverage detected