I want to reference the actor from a FHitResult struct where the hit AActor is a TWeakObjectPtr in the struct.
if I call get on it and assign it to a naked pointer say AActor* HitActor. The HitActor pointer goes null arbitrarily.
I assume this is beacuse AActor* HitActor is not a UPROPERTY ?
so which of the following is a strong pointer that wont go null unexpectedly:
AActor* RawPointer
TShared SharedPtr
UPROPERTY ()
AActor* RawUpropertyPointer