UActorGroupingUtils::CanGroupSelectedActors

Check if the currently selected actors can be grouped together