Want to know about super in (Super::BeginPlay())

In this line of code Super::BeginPlay(); what is the work of super . Is super a name space??

It is a type alias for the parent class and is setup by the GENERATED_BODY macro.

For the class class UOpenDoor : UActorComponent Super is just another way to say UActorComponent as that is the parent class.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms