I have an obstacle spawner that needs to keep track of all of the fences it spawns so it can tell them to accelerate continually. To do this, I have a TArray property.
TArray<AFenceObstacle*> Fences;
My idea is that I want my fences to despawn (destroy themselves) when they have gone far enough off screen. What I want to know is if any index of my TArray that points to a now-destroyed FenceObstacle will automatically point to nullptr?