Cannot add object reference to an array variable in level blueprint.

I placed some pointlights in the level, and I wanted to make an array to contain them in the level blueprint. I could see these pointlights in the array’s drop-down list, but nothing happened after I clicked them, the array’s element still was None.


I used UE 5.1.1 vesion, and I didn’t met this problem in UE4. Is this a UE5 bug?

No, it doesn’t work, eh? :slight_smile:

I guess you could use

image

or just a blueprint actor instead of the level BP.

Can you pick with the eyedropper?

Nooope… :slight_smile:

It didn’t work too.

The var is not flagged as instance editable.

So it’s just a bug of UE5?

1 Like

I can’t get it to work :slight_smile:

I tried to flag it to editable, didn’t solve this. There is no such a problem in UE4.

1 Like

Not the exact issue but a very similar regression:

With a target fix for 5.3. Hopefully it will be addressed, too. Ideally, should be reported, this is a major feature.

2 Likes

As a temporary workaround you could make an actor to hold the variable and make it instance editable. Once placed into the world you can pick lights out of the scene and it seems to “stick” not reverting to one.
Then you could put your logic into the actor.

Edit: In the latest update of 5.1 (Version: 5.1.1-23901901+++UE5+Release-5.1) it seems to be working ok. (latest hotfix might have fixed it)

5.2 seems to be where it’s problematic.

2 Likes

It’s weird that I use the same version as you, but I still can’t add it to array. Which template did you use to create your program? I used the third person template.

I just loaded up the default (it loads the open world template) and picked new level =>Basic.

2 Likes

It works! Seems that the template default level can’t perform the operation, creating a new level will be OK. Thanks. :grinning: Hope they fix this bug asap.

2 Likes