UKismetSystemLibrary::GetPrimaryAssetIdFromSoftClassReference

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