What these cpp lines do?

what these functions do
Actually I was trying to make a inventory for an Actor and I was looking for some help with these functions inside “PickUp()” and “PutDown()” what these functions do and how they are helping in this part of code…

void AInventoryActor::PickUp()

{
SetActorTickEnabled(false);

SetActorHiddenInGame(true);

SetActorEnableCollision(false);

}

void AInventoryActor::PutDown(FTransform TargetLocation)

{

SetActorTickEnabled(true);

SetActorHiddenInGame(false);

SetActorEnableCollision(true);

SetActorLocation(TargetLocation.GetLocation());

}

These make items disappear in the world when you pick them up, and appear if you drop them.

Ok! Thanks…