# \[UE5\] TLazyPtr nulls only when travelling to level?

**URL:** <https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, editor, compositing, CPP, question, Blueprint\
**Created:** [February 16, 2023, 12:13pm UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112 "2023-02-16T12:13:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 16, 2023, 12:13pm UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112/1 "2023-02-16T12:13:47Z")

</div>

One property of type TLazyObjectPtr is configured on the editor panel to target a ACameraActor on the scene.

Property on ACompositingElement, Compositing plugin.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/4/ab4474cfb1d379fb3aec585f0574e806ffaf4a03.png)

This works just fine. When the level plays in PIE the reference is valid. However, When I travel to this level from another level the reference is null.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/b/30b93257d209947835321f3434ada86b773ceb6c.png)

I noticed this happening with TSoftObjectPtr as well. Aren’t they supposed to keep a soft reference at all times?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 16, 2023, 9:07pm UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112/2 "2023-02-16T21:07:33Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 18, 2023, 4:03am UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112/3 "2023-02-18T04:03:11Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 19, 2023, 10:47pm UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112/4 "2023-02-19T22:47:22Z")

</div>

I tested various soft pointer properties on various actors, all contained by sublevel actors referencing an actor on a persistent level. All become null during PIE. Just curious who else ran into this so far.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [February 20, 2023, 10:01am UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112/5 "2023-02-20T10:01:18Z")

</div>

Makes perfect sense to me. When you travel, the actor (belonging to the world) is gone, so the reference no longer resolves to a valid actor.

The underlying string is probably the same RE the Soft Ptr, but the actor itself is now null. It won’t resolve to anything and the editor can’t show you what it is.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 20, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/ue5-tlazyptr-nulls-only-when-travelling-to-level/772112/6 "2023-02-20T17:20:48Z")

</div>

Yes that makes sense for a normal pointer but not for a lazy / soft one to nullptr on its own. I’m supposed to be able to make a reference so I can load the actor on demand 😄.

Also the lazy pointers do point at actors on the same level. Just when that level is streamed as a sublevel into another level the pointers null. That makes no sense to me.
