# \#uobject

**URL:** https://forums.unrealengine.com/tag/uobject/663.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Adding to SubObject list in Constructor causing reference exception](https://forums.unrealengine.com/t/adding-to-subobject-list-in-constructor-causing-reference-exception/2409833)

<div class="topic-metadata">

**Author:** [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Replies:** 2\
**Last updated:** [October 21, 2026, 1:01pm UTC](https://forums.unrealengine.com/t/adding-to-subobject-list-in-constructor-causing-reference-exception/2409833 "2026-10-21T13:01:01Z")

</div>

I’m following this guide on SubObject replication, but I ran into this issue that I’m not understanding The guide says to add the following to the Actor’s constructor if(IsValid(MyActorSubobject)) { …

---

## [Having trouble using a timeline in a UObject ](https://forums.unrealengine.com/t/having-trouble-using-a-timeline-in-a-uobject/2735277)

<div class="topic-metadata">

**Author:** [@RG-GTS](https://forums.unrealengine.com/u/RG-GTS)\
**Replies:** 4\
**Last updated:** [July 13, 2026, 2:08pm UTC](https://forums.unrealengine.com/t/having-trouble-using-a-timeline-in-a-uobject/2735277 "2026-07-13T14:08:11Z")

</div>

Hi! I’ve been trying to create a small UObject to act as a template class for actions my actors can perform. Some of them are movement-based, so I have tried to add a timeline. Even though I have bound functions to its u…

---

## [How to increase MaxUObjects for Android?](https://forums.unrealengine.com/t/how-to-increase-maxuobjects-for-android/2655354)

<div class="topic-metadata">

**Author:** [@JulianPW](https://forums.unrealengine.com/u/JulianPW)\
**Replies:** 1\
**Last updated:** [September 11, 2025, 12:01pm UTC](https://forums.unrealengine.com/t/how-to-increase-maxuobjects-for-android/2655354 "2025-09-11T12:01:48Z")

</div>

Working with UE 5.3.2 I want to increase the MaxUObjectsInGame for an Android device. I already added a Project/Config/Android/DefaultAndroidEngine.ini where I set gc.MaxObjectsInGame and gc.MaxObjectsInProgram. I also…

---

## [How to dispose UObject after using it in the editor.](https://forums.unrealengine.com/t/how-to-dispose-uobject-after-using-it-in-the-editor/487923)

<div class="topic-metadata">

**Author:** [@xXUnreal34Xx](https://forums.unrealengine.com/u/xXUnreal34Xx)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 8:10pm UTC](https://forums.unrealengine.com/t/how-to-dispose-uobject-after-using-it-in-the-editor/487923 "2025-05-15T20:10:48Z")

</div>

Hello guys, I’m experiencing a lot of issues with the UE4 memory management system. I have a couple of C++ scripts in my editor to process StaticMesh such as : Generating LODs, Collision testing and more. I’m processing…

---

## [Is it possible to allocate UObjects contiguously?](https://forums.unrealengine.com/t/is-it-possible-to-allocate-uobjects-contiguously/2423183)

<div class="topic-metadata">

**Author:** [@Moon515](https://forums.unrealengine.com/u/Moon515)\
**Replies:** 3\
**Last updated:** [March 28, 2025, 3:01am UTC](https://forums.unrealengine.com/t/is-it-possible-to-allocate-uobjects-contiguously/2423183 "2025-03-28T03:01:30Z")

</div>

Using TArrays doesn’t solve the problem as they will have a collection of pointers that are contiguous, but not the objects themselves. Heap fragmentation will occur. Just curious how the community handles this issue.

---

## [Create UObject in StartupModule()](https://forums.unrealengine.com/t/create-uobject-in-startupmodule/409683)

<div class="topic-metadata">

**Author:** [@WeiLiang](https://forums.unrealengine.com/u/WeiLiang)\
**Replies:** 8\
**Last updated:** [January 23, 2025, 1:12am UTC](https://forums.unrealengine.com/t/create-uobject-in-startupmodule/409683 "2025-01-23T01:12:06Z")

</div>

Hi all, I am attempting to connect to a websocket server in StartupModule() of my plugin. In editor mode, I cannotconnect to a websocket server, but in a packaged game, I can connect. My issue here is, i am creating an …

---

## [Garbage collection, creating UObject while collecting garbage is not allowed](https://forums.unrealengine.com/t/garbage-collection-creating-uobject-while-collecting-garbage-is-not-allowed/2051311)

<div class="topic-metadata">

**Author:** [@Elites94](https://forums.unrealengine.com/u/Elites94)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 8:36am UTC](https://forums.unrealengine.com/t/garbage-collection-creating-uobject-while-collecting-garbage-is-not-allowed/2051311 "2024-10-04T08:36:32Z")

</div>

Hello, I have an issue with garbage collection and I would like to know how I can find what is causing that… I have a game server in 4.26, and the fatal error “Creating UObjects while Collecting Garbage is not allowed!…

---

## [Will UClass Object be GC?](https://forums.unrealengine.com/t/will-uclass-object-be-gc/2007922)

<div class="topic-metadata">

**Author:** [@user\_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373](https://forums.unrealengine.com/u/user_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 8:35am UTC](https://forums.unrealengine.com/t/will-uclass-object-be-gc/2007922 "2024-09-06T08:35:23Z")

</div>

I wrote a TMap\<UClass\*, int32\>. But the key could be pointing to a UClass that is defined in a dynamicly loaded module. So if that module got unloaded, will that UClass\* become a dangling pointer? Or I can expect that on…

---

## [Saving UObjects into a SaveGame via Blueprint](https://forums.unrealengine.com/t/saving-uobjects-into-a-savegame-via-blueprint/469431)

<div class="topic-metadata">

**Author:** [@Wahooney](https://forums.unrealengine.com/u/Wahooney)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 9:03pm UTC](https://forums.unrealengine.com/t/saving-uobjects-into-a-savegame-via-blueprint/469431 "2023-12-06T21:03:21Z")

</div>

The title says it all, I want to save pure data objects to a SaveGame, I could do it by first manually writing the data to an intermediate struct but that just feels like unnecessary schlep work. I’ve tried saving an Obj…

---

## [Does an owner of UPROPERTY member need to be also declared with UPROPERTY for garbage collector to work properly?](https://forums.unrealengine.com/t/does-an-owner-of-uproperty-member-need-to-be-also-declared-with-uproperty-for-garbage-collector-to-work-properly/1468196)

<div class="topic-metadata">

**Author:** [@hzn84](https://forums.unrealengine.com/u/hzn84)\
**Replies:** 1\
**Last updated:** [December 5, 2023, 9:21am UTC](https://forums.unrealengine.com/t/does-an-owner-of-uproperty-member-need-to-be-also-declared-with-uproperty-for-garbage-collector-to-work-properly/1468196 "2023-12-05T09:21:44Z")

</div>

What would happen if I would have situation like below: USTRUCT() struct FChild { GENERATED\_BODY() UPROPERTY() UObject\* MyObject; } UCLASS() class UParentClass: public UObject { GENERATED\_BODY() FChil…

---

## [UObject is still nullptr after being initialized in constructor](https://forums.unrealengine.com/t/uobject-is-still-nullptr-after-being-initialized-in-constructor/1406133)

<div class="topic-metadata">

**Author:** [@shue\_it](https://forums.unrealengine.com/u/shue_it)\
**Replies:** 2\
**Last updated:** [November 20, 2023, 3:36pm UTC](https://forums.unrealengine.com/t/uobject-is-still-nullptr-after-being-initialized-in-constructor/1406133 "2023-11-20T15:36:08Z")

</div>

Hello o/ I have two C++ classes (let say A and B class) which inherit from the same C++ parent class (let say AZ), which contains a custom Data variable (UMyData, which just inherit from UObject) In each constructor of…

---

## [Does UObject has a callback for when the "Construct Object from Class" is done?](https://forums.unrealengine.com/t/does-uobject-has-a-callback-for-when-the-construct-object-from-class-is-done/1374290)

<div class="topic-metadata">

**Author:** [@calmattt](https://forums.unrealengine.com/u/calmattt)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 1:52pm UTC](https://forums.unrealengine.com/t/does-uobject-has-a-callback-for-when-the-construct-object-from-class-is-done/1374290 "2023-11-09T13:52:06Z")

</div>

Hi, I have the following model: UCLASS(BlueprintType, Blueprintable) class MYSPACESHIPGAME\_API UStarCluster : public UObject { GENERATED\_BODY() private: UPROPERTY(BlueprintReadOnly, Category = "Stars", meta = (All…

---

## [Providing construction time critical state to a parent from the Child](https://forums.unrealengine.com/t/providing-construction-time-critical-state-to-a-parent-from-the-child/1310455)

<div class="topic-metadata">

**Author:** [@berriers](https://forums.unrealengine.com/u/berriers)\
**Replies:** 1\
**Last updated:** [September 24, 2023, 7:42pm UTC](https://forums.unrealengine.com/t/providing-construction-time-critical-state-to-a-parent-from-the-child/1310455 "2023-09-24T19:42:49Z")

</div>

There’s a fairly common pattern in C++ that I cannot figure out how to implement when my class is a UObject. Let me describe the pattern first (I don’t think it has a name): The parent has a critical piece of state th…

---

## [UObject Lifecycle | When to access subobjects of blueprintable UObjects](https://forums.unrealengine.com/t/uobject-lifecycle-when-to-access-subobjects-of-blueprintable-uobjects/1237804)

<div class="topic-metadata">

**Author:** [@KanakemitHacke](https://forums.unrealengine.com/u/KanakemitHacke)\
**Replies:** 0\
**Last updated:** [July 23, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/uobject-lifecycle-when-to-access-subobjects-of-blueprintable-uobjects/1237804 "2023-07-23T18:28:53Z")

</div>

I have 2 blueprintable UObject classes for an inventory. (inventory and item) For efficient replication I mark my objects to need replication with a replication key. For that the item will need a reference to the invent…

---

## [PostInitProperties funcitonality for a USTRUCT](https://forums.unrealengine.com/t/postinitproperties-funcitonality-for-a-ustruct/425135)

<div class="topic-metadata">

**Author:** [@Ben0nator](https://forums.unrealengine.com/u/Ben0nator)\
**Replies:** 8\
**Last updated:** [July 3, 2023, 8:40pm UTC](https://forums.unrealengine.com/t/postinitproperties-funcitonality-for-a-ustruct/425135 "2023-07-03T20:40:14Z")

</div>

I’m trying to create a new BlueprintType with a USTRUCT. I expect to be able to do the following: Make new variable in a blueprint (with my new type) Set defaults for the new variable (in the blueprint) The other membe…

---

## [Access member function of another C++ component](https://forums.unrealengine.com/t/access-member-function-of-another-c-component/770024)

<div class="topic-metadata">

**Author:** [@Olivetum](https://forums.unrealengine.com/u/Olivetum)\
**Replies:** 3\
**Last updated:** [February 14, 2023, 6:14pm UTC](https://forums.unrealengine.com/t/access-member-function-of-another-c-component/770024 "2023-02-14T18:14:19Z")

</div>

Hi. I am learning C++ development in Unreal and wanted to exercise a bit with programming patterns but I am stuck with a seemingly simple problem. I have a Grabber Scene Component that I use to grab an object. My goal w…

---

## [How to fix up object stuck at NULL in blueprint?](https://forums.unrealengine.com/t/how-to-fix-up-object-stuck-at-null-in-blueprint/484221)

<div class="topic-metadata">

**Author:** [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Replies:** 2\
**Last updated:** [September 18, 2022, 8:29pm UTC](https://forums.unrealengine.com/t/how-to-fix-up-object-stuck-at-null-in-blueprint/484221 "2022-09-18T20:29:38Z")

</div>

I have a character subclass. It creates an AbilitySystemComponent, and a custom AttributeSet. The AttributeSet is assigned to a member variable named Attributes which used to just be a UPROPERTY() but is now EditAnywher…

---

## [RPC doesn't work on repicated UObject](https://forums.unrealengine.com/t/rpc-doesnt-work-on-repicated-uobject/360736)

<div class="topic-metadata">

**Author:** [@Sashka](https://forums.unrealengine.com/u/Sashka)\
**Replies:** 9\
**Last updated:** [July 21, 2022, 3:49pm UTC](https://forums.unrealengine.com/t/rpc-doesnt-work-on-repicated-uobject/360736 "2022-07-21T15:49:57Z")

</div>

I’ve set up my UObject derived class properly (like recomended here). And property replication works good, BUT I can’t call RPC on this object. On server side I’ve tried to call method marked as UFUNCTION(NetMulticast, R…

---

## [Access violation in UpdateChangelistMgr](https://forums.unrealengine.com/t/access-violation-in-updatechangelistmgr/476115)

<div class="topic-metadata">

**Author:** [@Fronit](https://forums.unrealengine.com/u/Fronit)\
**Replies:** 2\
**Last updated:** [May 7, 2022, 11:03am UTC](https://forums.unrealengine.com/t/access-violation-in-updatechangelistmgr/476115 "2022-05-07T11:03:56Z")

</div>

Hello, I am having troubles with an access violation in UpdateChangelistMgr sometimes right after i add an UObject to an replicated array. I am running out of ideas so any help would be awesome. The error: Unhandled E…

---

## [Some confusion of UObject\*, UPROPERTY decorator, and UWeakObjectPtr](https://forums.unrealengine.com/t/some-confusion-of-uobject-uproperty-decorator-and-uweakobjectptr/503183)

<div class="topic-metadata">

**Author:** [@ZStaSmith](https://forums.unrealengine.com/u/ZStaSmith)\
**Replies:** 9\
**Last updated:** [March 3, 2022, 11:14pm UTC](https://forums.unrealengine.com/t/some-confusion-of-uobject-uproperty-decorator-and-uweakobjectptr/503183 "2022-03-03T23:14:37Z")

</div>

There is a lot of documentation on UObject ptrs, and those decorated with UPROPERTY, and then TWeakObjectPtrs in general, but I haven’t seen any with a direct answer to this - or obvious to me at least. This is referenc…

---

## [Adding UPROPERTIES to the UObject class](https://forums.unrealengine.com/t/adding-uproperties-to-the-uobject-class/503332)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4f8a4bb7](https://forums.unrealengine.com/u/anonymous_user_4f8a4bb7)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 1:42pm UTC](https://forums.unrealengine.com/t/adding-uproperties-to-the-uobject-class/503332 "2022-03-02T13:42:12Z")

</div>

Hey Guys So in my project I want to have a tag system so I can keep track of all my asset progress through my pipeline. I had a system where I add tags to the AnimSequence asset and worked like a charm but now trying to…

---

## [Error on Project Packaging - must inherit UObject](https://forums.unrealengine.com/t/error-on-project-packaging-must-inherit-uobject/479920)

<div class="topic-metadata">

**Author:** [@jmo74](https://forums.unrealengine.com/u/jmo74)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 3:47pm UTC](https://forums.unrealengine.com/t/error-on-project-packaging-must-inherit-uobject/479920 "2021-11-24T15:47:38Z")

</div>

Hi Everyone, Very new to Unreal (also no knowledge about C++) so please bear with me. I have searched these forums to answer my issue but to no avail. Upon Packaging my project for Windows, I get an error in the Output…

---

## [Editable Sub-Object Component Pointers](https://forums.unrealengine.com/t/editable-sub-object-component-pointers/314612)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c788a779](https://forums.unrealengine.com/u/anonymous_user_c788a779)\
**Replies:** 14\
**Last updated:** [August 19, 2021, 7:06pm UTC](https://forums.unrealengine.com/t/editable-sub-object-component-pointers/314612 "2021-08-19T19:06:38Z")

</div>

This is sort of a broad question concerning how sub-object pointers are meant to function in UE4. What I’ve been trying to do for a few days is to allow the editor to modify sub-object pointers to components of an actor…

---

## [UE 4.26 Project Will Not Open After Crash During Blueprint Compilation (freezes at 92%, 93%, or 94%)—MaxElements](https://forums.unrealengine.com/t/ue-4-26-project-will-not-open-after-crash-during-blueprint-compilation-freezes-at-92-93-or-94-maxelements/483695)

<div class="topic-metadata">

**Author:** [@Xenon2112](https://forums.unrealengine.com/u/Xenon2112)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 7:53pm UTC](https://forums.unrealengine.com/t/ue-4-26-project-will-not-open-after-crash-during-blueprint-compilation-freezes-at-92-93-or-94-maxelements/483695 "2021-05-21T19:53:56Z")

</div>

Hello friendly UE4 community, I have a project that will not open. The loading screen freezes either at 92%, 93%, or 94%, memory usage for the process skyrockets until system memory is near 100%, and then about 15 minu…

---

## [Assertion Failed !IsGarbageCollecting()](https://forums.unrealengine.com/t/assertion-failed-isgarbagecollecting/481686)

<div class="topic-metadata">

**Author:** [@StuntThumper88](https://forums.unrealengine.com/u/StuntThumper88)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 4:57pm UTC](https://forums.unrealengine.com/t/assertion-failed-isgarbagecollecting/481686 "2021-05-21T16:57:34Z")

</div>

I have a plugin that tries to create UObjects after a database request, but occasionally it crashes because its trying to make UResultRow (a UObject) while its garbage collecting? I’ve break pointed it and VS says I’m in…

---

## [UObject vs UStruct vs An Alternative?](https://forums.unrealengine.com/t/uobject-vs-ustruct-vs-an-alternative/482450)

<div class="topic-metadata">

**Author:** [@22u\_79](https://forums.unrealengine.com/u/22u_79)\
**Replies:** 9\
**Last updated:** [April 29, 2021, 1:54pm UTC](https://forums.unrealengine.com/t/uobject-vs-ustruct-vs-an-alternative/482450 "2021-04-29T13:54:06Z")

</div>

I am currently trying to basically make my own type of variable, in form of a class. It is meant to store the in-game stats of actors of any kind. Like for example Health, Speed, or maybe just the Damage or Mana-Cost of …

---

## [TScriptInterface always returns null](https://forums.unrealengine.com/t/tscriptinterface-always-returns-null/480020)

<div class="topic-metadata">

**Author:** [@Ledii](https://forums.unrealengine.com/u/Ledii)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 12:47am UTC](https://forums.unrealengine.com/t/tscriptinterface-always-returns-null/480020 "2021-03-10T00:47:31Z")

</div>

Hi. I’m a bit confused as to how to properly work with the TScriptInterface. I was not able to locate a lot of information on it. But from what I understand I need to check if the object is NULL before I try to run any E…

---

## [UObject's Instanced value reset to C++ default value on Play?](https://forums.unrealengine.com/t/uobjects-instanced-value-reset-to-c-default-value-on-play/450629)

<div class="topic-metadata">

**Author:** [@Albatros155](https://forums.unrealengine.com/u/Albatros155)\
**Replies:** 2\
**Last updated:** [January 23, 2021, 10:36am UTC](https://forums.unrealengine.com/t/uobjects-instanced-value-reset-to-c-default-value-on-play/450629 "2021-01-23T10:36:41Z")

</div>

Hello everyone, I’m currently implementing an “Emotion Component” (that inherit from an Actor Component) that have a list of “EmotionGauge” (that inherit from a UObject and FTickableGameObject). Unfortunately, I’m havi…

---

## [Audio stops playing when game is paused](https://forums.unrealengine.com/t/audio-stops-playing-when-game-is-paused/476397)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e8038a48](https://forums.unrealengine.com/u/anonymous_user_e8038a48)\
**Replies:** 2\
**Last updated:** [December 26, 2020, 10:52am UTC](https://forums.unrealengine.com/t/audio-stops-playing-when-game-is-paused/476397 "2020-12-26T10:52:03Z")

</div>

Hello! I made a little bit bigger system on c++ for audio lines synchronization and in past project creation I found some kind of bug or I don’t know what. In my staff I’m creating an UAudioComponent in my custom ticka…

---

## [\[Bug\] Crash when using inline objects inside user widget instance](https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354)

<div class="topic-metadata">

**Author:** [@DGrouse](https://forums.unrealengine.com/u/DGrouse)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 6:27am UTC](https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354 "2020-10-23T06:27:40Z")

</div>

Hi, I’ve been working on an inventory system that uses inline objects for instancing default properties of items and containers. I normally do these inline property stacks on actor components (to give world context and a…

[Next page](https://forums.unrealengine.com/tag/uobject/663.md?match_all_tags=true&page=1&tags%5B%5D=uobject)
