Array of scenegraph prefabs causes hot reload crash in UEFN, but case-switch does not

Summary

Using an array of scenegraph-generated prefabs (e.g., BasePrefabs.P_NPC_*) in Verse compiles without errors but consistently crashes the server during hot reload. Referencing the same prefabs in a case statement works fine. If arrays of these prefabs are unsupported, validation errors should be shown instead of allowing silent crashes.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Stability

Steps to Reproduce

Create an array of scenegraph prefab references using asset-generated types (like BasePrefabs.P_NPC_*).

Trigger a hot reload in UEFN.

Observe the crash.

Replace the logic with a case statement referencing the same prefabs.

Hot reload works fine.

Expected Result

If array initialization with prefab references like these is unsupported, UEFN should raise validation errors or warnings.

If supported, the server should not crash during hot reload.

Observed Result

When using the prefab array (npc_prefabs : entity = array{…}), UEFN compiles without any validation errors.

However, triggering hot reload causes the server to crash consistently.

No error logs or warnings are displayed before the crash.

The same prefabs used in a case(Index) function do not cause a crash — hot reload works as expected in that scenario.

Platform(s)

PC

Additional Notes

Additional Notes:

Seems like the crash is specifically caused by array initialization with asset-generated prefabs.

Prefabs load and function correctly when referenced individually in code.

No error messages are shown before the crash—validation passes.

FORT-929369 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.

Hi @Gyrogodzilla66 - We’re getting the team to take a look at this.

1 Like