getAllActorsOfClass returns empty after packaging project

anonymous_user_c74e9f70
Thu, 22 Oct 2020 10:59:21 +0000
Cinematics & Media

Hi there!

I’m having some trouble dealing with getAllActorsOfClass after packaging my project. I’ve been setting camera system based on this [tutorial ][1] (it has 4 parts, i followed all of them), and if in PlayInEditor everything works just fine, after packaging project and executing .exe, i has this in log:

LogScript: Warning: Script Msg: Attempted to access index 0 from array ‘CallFunc_GetAllActorsOfClass_OutActors’ of length 0 in ‘/Game/2DSideScrollerBP/Blueprints/2DSideScrollerCharacter.2DSideScrollerCharacter_C:ExecuteUbergraph_2DSideScrollerCharacter’!

How can i fix it and why does it even behave like that? All i need is to have reference on my custom camera actor inside my character as a variable. GetAllActorsOfClass node is in Set Camera Reference function belonging to character.

Tnx

19 posts - 3 participants