Why ASomeactor::Beginplay() calls Super::BeginPlay()?
Is Super class is the UObject class? Can someone explain me this mechanism? I totally dont understand this... I know that this is required to run some blueprint but what stands behind it all. IS Super word is reserved?
asked Feb 20 '16 at 01:56 PM in C++ Programming
This is just Unreal's way of calling the same function of the base class. The base class usually performs some sort of initialization that child classes require.
In normal C++ code you'd write BaseClass::BeginPlay();
In UE4 Super is auto generated and is just a typedef that acts as an alias to the parent class. Other languages have it built in as a keyword.
Based on your confusion, I highly recommend you read up on object orientated programming.
Follow this question
Once you sign in you will be able to subscribe for any updates here