C++ terms Programming

1.Component->SetCollisionProfileName(UCollisionProfile::Pawn_ProfileName);

2.Component->SetStaticMesh(RockMesh.Object);

So am creating a MeshComponent, which have already been declarer as and then i have the lines 1 and 2 which come afterwards. I am a real newbie to unreal engine and i am using some template code.

I would like to know what these code in bold do. Is the RockMesh a built in object ?

I thank you a lot for your time and comprehension in advance.

My guess is that RockMesh.Object is something being loaded in and then set as the Static Mesh for the Static Mesh Component.

Are you following a tutorial?

Yes i am following a Youtube Tutorial where someone has built a game.
The full code:

static ConstructorHelpers::FObjectFinder RockMesh(TEXT(“/Game/ThirdPerson/Meshes/CubeMesh.CubeMesh”));

// Create the mesh component
FloorMeshComponent = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Ground"));
 = FloorMeshComponent;
FloorMeshComponent->SetCollisionProfileName(UCollisionProfile::Pawn_ProfileName);

FloorMeshComponent->SetStaticMesh(RockMesh.Object);

FloorMeshComponent->SetWorldScale3D(FVector(2.0F, 2.0F, 0.2F));

// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;

and what about UCollisionProfile::Pawn_ProfileName ?