How to access class field in directory visitor?


It works in my project.

Your UPuzzleCategories is of type actor or scene component hence the U prefix. You need to pass in the puzzle component that is added to your actor component.

Or just make it an actor component then there will be no target, it’ll take self as a basis.