How To Prevent Crashes Due To Dangling Actor Pointers
This wiki article was written by Rama.
TArray<AActor*> UnitArray;UPROPERTY() UObjects Clear References Properly
UPROPERTY() //<~~~ That's it! This now makes the pointers much more stable! -Rama
TArray<AActor*> UnitArray;TWeakObjectPtr
Conclusion
Last updated
Was this helpful?