Can't pick StaticMeshActor from sub-level scene when I create variable of that type in blueprint

I have made an blueprint and inside of it, variable of type StaticMeshActor (object reference):
a1

When I create instance of this blueprint in scene, I get the drop-down for my “Test” variable with StaticMeshActor actors in scene and sub-levels as well (that’s correct).
But once I click on any of them (that comes from sub-level), field resets to “None” again. Same goes for picker icon from scene.
a2

Is it bug, or am I doing something wrong? Is it even possible to select actor from sub-level?

Please upload full view of construction graph that will help

The rest of settings are as per-default (all the checkboxes etc.):

There is no graph inside this blueprint and it’s easy to replicate with fresh new blueprint with simple variable of type StaticMeshActor.

I believe it’s related to the fact that blueprint is in persistent level and actors I try to pick are from sub-levels - I do see them on list but once I click them, value gets reset to None.

Which looks kind of like bug to me - if it’s not possible to pick actor from sub-level (that would be very cont-productive to use sub-levels at all) they should not be on the list.
And if it is possible, then maybe I’m doing something wrong?

I was expecting Graph but anyway you can try this

Set Variable type to Static Mesh > Object Reference

Hi!
The actors of the sub-levels are stored with SoftObjectReference instead of ObjectReference because the levels may not be loaded and the references would be lost.
image
image

3 Likes

Thanks! That was it.

You’re welcome! :smile: