I am learning unreal engine and I know a little about C++. However, I am not entirely sure what is going on in this line of code. Can someone explain to me like i'm 5?
class ESCAPEROOM_API UWorldPosition : public UActorComponent
We are defining the function as UActorComponent which is understood, but not sure what is going on in this piece:
class ESCAPEROOM_API UWorldPosition
The rest of the code,
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "WorldPosition.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class ESCAPEROOM_API UWorldPosition : public UActorComponent <==========
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UWorldPosition();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
};