# Issues with worldRaycast with "Get reference to actor hit" and level instances 

**URL:** <https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057>\
**Category:** World Creation\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [September 3, 2026, 6:52pm UTC](https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057 "2026-09-03T18:52:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 3, 2026, 6:52pm UTC](https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057/1 "2026-09-03T18:52:08Z")

</div>

Hello! I’m observing an issue where using WorldRaycast inside a PCG graph with bGetReferenceToActorHit set to true in a level that contains level instances.

After running the generation and saving, I get an error from AssetValidator\_AssetReferenceRestrictions that my PCG actor **soft references a missing package** which has the path /Temp/…/LevelInstance:SomeStaticMesh actor.

The graph spawns static meshes as a result, nothing is connected to the output.

Disabling world raycast or not getting the actor reference fixes the issue.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 3, 2026, 6:52pm UTC](https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057/2 "2026-09-03T18:52:11Z")

</div>

**Steps to Reproduce**  
Create a PCG graph like this:

[Image Removed]

Set bGetReferenceToActorHit to true on World Raycast.

Add a level instance containing several static meshes to an empty level. Place the PCG volume into the level so that it would hit the level instance with the raycast.

Save the result. AssetValidator\_AssetReferenceRestrictions will produce an error that PCG actor **soft references a missing package** and point to the static mesh inside the level instance.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![AdrienLogut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adrienlogut/32/924340_2.png) [@AdrienLogut](https://forums.unrealengine.com/u/AdrienLogut)\
**Post date:** [September 21, 2026, 1:07pm UTC](https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057/3 "2026-09-21T13:07:20Z")

</div>

Hi! Sorry for the late answer

I can repro locally, and I think I know where it is coming from.

The `From Input` of the Get Primitive Data is dynamically registering itself to track all the objects you pass as input, so it knows when something changes to refresh the graph.

In this case, we are kinda screwed because of that, we can’t have any reference to the temporary actors that don’t exist in the world.

I’ll see what I can do, probably discard dynamic tracking for all the temporary actors.

Thanks a lot for the report, I’ll keep you posted when I have a committed CL, either as a hotfix, or for 6.0 if I was not able to change it without breaking the ABI.

Have a great day

Adrien

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![AdrienLogut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adrienlogut/32/924340_2.png) [@AdrienLogut](https://forums.unrealengine.com/u/AdrienLogut)\
**Post date:** [September 28, 2026, 8:31pm UTC](https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057/4 "2026-09-28T20:31:16Z")

</div>

It’s in 🙂

[https://github.com/EpicGames/UnrealEngine/commit/03cb615353ca1488e954f5b1823a64b78b185ac3](https://github.com/EpicGames/UnrealEngine/commit/03cb615353ca1488e954f5b1823a64b78b185ac3)

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 22, 2026, 9:20am UTC](https://forums.unrealengine.com/t/issues-with-worldraycast-with-get-reference-to-actor-hit-and-level-instances/2846057/5 "2026-09-22T09:20:48Z")

</div>

Thanks a lot and glad to help with catching some bugs! I’ll be looking forward to the fix 😊

[Attachment Removed]
