Custom Inventory System - Some Questions

The instances are being destroyed. The counter value persists for as long as the engine is running, which in the editor can span across multiple PIE sessions.

See for yourself, put a TObjectIterator somewhere in your code:



	for( TObjectIterator<UObjectChildClass> It; It; ++It )
	{
		UE_LOG( LogMyGame, Display, TEXT("UObjectChildClass: %s"), *GetNameSafe( *It ) );
	}


You will see that you only ever have as many instances as you created in that run, even if their indices aren’t starting at 0.