Hello. So, I am new to unreal engine, and I wanted to check if a Pawn is colliding with an Actor using UBoxComponent, then Print a message into the debug. But what I found was for UE 4 and not for UE 5 (Unreal engine 5.4.2):
You can use the dot operator (.) only when accessing a direct reference of an object.
Here the box is a pointer. Pointers are accessed through the arrow operator (->)
You shouldn’t bind functions to delegates in the constructor though, since those get serialized to the asset, and in turn to all the children of that class, which can be really problematic and there is no easy way to remove them really