# TSoftObjectPtr null even when set in editor

**URL:** <https://forums.unrealengine.com/t/tsoftobjectptr-null-even-when-set-in-editor/1853160>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 12, 2024, 11:42pm UTC](https://forums.unrealengine.com/t/tsoftobjectptr-null-even-when-set-in-editor/1853160 "2024-05-12T23:42:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Althaen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Althaen](https://forums.unrealengine.com/u/Althaen)\
**Post date:** [May 12, 2024, 11:42pm UTC](https://forums.unrealengine.com/t/tsoftobjectptr-null-even-when-set-in-editor/1853160/1 "2024-05-12T23:42:50Z")

</div>

I set a data asset that has a TSoftObjectPtr to a UStaticMesh on an actor in the editor but when I try to use the ptr in my C++ code in the editor to set the mesh the ptr is always null.
