| 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 | { |