UKismetSystemLibrary::GetPrimaryAssetIdFromClass

Returns the Primary Asset Id for a Class, this can return an invalid one if not registered