Missing statement in UPositionReport constructor

Hi, I just noticed that the video shows, in the generated PositionReport.cpp file, inside the UPositionReport() constructor function, there’s a line which says:

bWantsBeginPlay = true;

However, in my generated file, this is what I have in the constructor:

UPositionReport::UPositionReport()
{
	// Set this component to be initialized when the game starts, and to be ticked every frame.  You can turn these features
	// off to improve performance if you don't need them.
	PrimaryComponentTick.bCanEverTick = true;

	// ...
}

As you can see, the line bWantsBeginPlay = true; is missing. Can someone please help me figure out why this is so, or is it going to be an issue in future lectures?

I am using Visual Studio 2015 Update 3, and Unreal Engine 4.14 (just updated it yesterday). I had created the project BuildingEscape with version 4.13 and then switched the project to 4.14 before starting this lecture. Not sure if that would cause any issues.

Because it’s now deprecated, here’s the warning I get compiling my project on 4.14 which I did when the videos came out (so whatever version number you see in the video).

Privacy & Terms