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

Method GetEnv

Plugins/UnLua/Source/UnLua/Private/UnLuaModule.cpp:164–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 virtual FLuaEnv* GetEnv(UObject* Object) override
165 {
166#if WITH_EDITOR
167 if (Object && FUnLuaDelegates::OnEditorLocate.IsBound())
168 {
169 if (const auto Env = FUnLuaDelegates::OnEditorLocate.Execute(Object))
170 return Env;
171 }
172#endif
173
174 if (!bIsActive)
175 return nullptr;
176
177 return EnvLocator->Locate(Object);
178 }
179
180 virtual void HotReload() override
181 {

Callers 6

DEFINE_FUNCTIONFunction · 0.45
GetStateFunction · 0.45
DoMethod · 0.45
DoFileMethod · 0.45
CollectGarbageMethod · 0.45
DefineMethod · 0.45

Calls 3

ExecuteMethod · 0.80
IsBoundMethod · 0.45
LocateMethod · 0.45

Tested by 1

DefineMethod · 0.36