Hidden Actor stays rendered in last location it was visible

I’m doing an inventory that spawns in world and when you press Tab I want to hide/show it

Inventory->bHidden = !Inventory->bHidden;

but when it sets the inventory to hidden the actor renders in the last position it was visible

Anyone know if this is a bug or if I’m doing something wrong?

This turns out to just be a problem with Paper2D Actors or something and this bit of code has fixed my problem

void APlayer::TogglePaperActorVisibility(APaperSpriteActor* Actor){
	Actor->bHidden = !Actor->bHidden;
	Actor->GetRenderComponent()->bVisible = !Actor->GetRenderComponent()->bVisible;
	Actor->SetActorHiddenInGame(false);
}

This works for both making the actor visible and invisible