Why should I replace raw pointers with TObjectPtr?

Honestly that is the main reason to use it. Creating new member pointer variables you can quickly forget initializing it with a nullptr.

Sadly Visual Studio based builds don’t really track this… I saw so many issues between debug and release builds during the past years.

5 Likes