getAllActorsOfClass returns empty after packaging project

Tick and begin play shouldn’t matter. I can’t tell from here, I’m afraid…