your PortalGun construct APortalManager
with NewObject
do not use NewObject<>
on Actor
always use GetWorld()->SpawnActor
also, do not spawn actor at class constructor, do it at BeginPlay
your PortalGun construct APortalManager
with NewObject
do not use NewObject<>
on Actor
always use GetWorld()->SpawnActor
also, do not spawn actor at class constructor, do it at BeginPlay