Lecture 171 Adding Tick Component() Back Super::BeginPlay();

Hello together,

can anybody explain to me why we don’t use the super::BeginPlay(); in the TankAimingComponent? I don’t quite get it when to use it or not. I believe Ben explained it somewhere in the Lectures before, but I couldn’t find it.

When you want to call the parent class’ BeginPlay function is when you call Super::BeginPlay()

1 Like

Here’s a discussion about BeginPlay() on the Unreal forums, that might shed some light on what you use it for (thus, when to use it or not): https://forums.unrealengine.com/showthread.php?27461-BeginPlay-VS-Constructor

1 Like

That’s an entirely different question.

I’m sorry, I was under the impression it was unclear when to use BeginPlay() or not.

Thank you guys ! I think I understand now

1 Like

If you don’t call the Super::BeginPlay() then BeginPlay event of the corresponding blueprint class will not occur/called.

Privacy & Terms