void UXXXEditorFunctionLibrary::SnapToFloor(AActor* Actor)
{
if (Actor)
{
Actor->Modify();
GEditor->SnapObjectTo(FActorOrComponent(Actor), false, false, false, false);
Actor->InvalidateLightingCache();
Actor->UpdateComponentTransforms();
}
}