Get all actors of class is empty

Hey there,
I have an array of classes as a variable in my blueprint called “FearObjects” filled with two classes:

11678-classarray.png

I want to get all actors of the class at the second position of this array “BP_ScaryChair”

11679-doesnt+work.png

however the Out Actors array has a length of 0 despite of me having several objects of the type “BP_ScaryChair” in my level.
When I ask specific for “Get all actors of class” and select BP_ScaryChair it works and I get all Actors.
Is this a bug or am I doing something wrong?
Thank you!

Not sure if related but I have a similar issue. I’m trying to get objects I can see in the level and change their enum setting from a blutility BP. I would assume it was an issue with blutility being experimental except for the fact I have a near identical one working just asking for a different class. What is the base class you are trying to get? For me an actor class works, but it’s the character class that returns 0 results.

Hope that sparks an idea from someone.

When are you running the code? Maybe the actors aren’t instantiated yet.

It’s at Event Begin Play but as I said, when I ask directly for a specific class instead of using the array element it works:

11756-this+works.png

The BP_ScaryChair and BP_ScaryStatue are children of BP_ScaryObject which is a child of Actor.

What’s the type of the Fear Objects variable? Maybe try making it more or less specific.

It’s an array of ‘class ScaryObject’. But today I tried it with no changes at all and it works as it should. So thank you for trying to help me :slight_smile:

Could you mark the question as answered? :smiley: I read everything to help you and at the end i saw that it’s already solved.

Sure thing, i didnt marked it as resolved because there isn’t an answer for problem but I guess he should make a question on his own.

Hi, I have the exact same issue, but I don’t know how to fix it.
I’m using the node in a Level BP, when the player overlap one trigger, here’s a screenshot

I’m on 4.12.5, I’m doing somthing wrong but I’cant see it. Thank you.