# UObject Lifecycle | When to access subobjects of blueprintable UObjects

**URL:** <https://forums.unrealengine.com/t/uobject-lifecycle-when-to-access-subobjects-of-blueprintable-uobjects/1237804>\
**Category:** C++\
**Tags:** uobject, construction, unreal-engine, CPP\
**Created:** [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")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KanakemitHacke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KanakemitHacke](https://forums.unrealengine.com/u/KanakemitHacke)\
**Post date:** [July 23, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/uobject-lifecycle-when-to-access-subobjects-of-blueprintable-uobjects/1237804/1 "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 inventory.

In the blueprints I can add Items to the inventory. I need a way to set the Owning inventory for each item before the object is further used. In the constructor I don’t have access to the in blueprint added items.

I considered PostInitProperties(), PostLoad(), PostCDOContruct() and PostCDOCompiled(), but none of these seem to serve my purpose.
