* Push a UObject */
| 299 | * Push a UObject |
| 300 | */ |
| 301 | int32 PushUObject(lua_State *L, UObjectBaseUtility *Object, bool bAddRef) |
| 302 | { |
| 303 | FLuaEnv::FindEnvChecked(L).GetObjectRegistry()->Push(L, (UObject*)Object); |
| 304 | return 1; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Get a UObject at the given stack index |