/Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPath.h
Returns this path without the SubPath component, restricting the result to a top level asset but keeping the type asFSoftObjectPathin contrast to GetAssetPath.
[FSoftObjectPath](API\Runtime\CoreUObject\UObject\FSoftObjectPath) GetWithoutSubPath() const