/Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h
Examples: "/Game/MyAsset.MyAsset:SubObject.AnotherObject" -> "/Game/MyAsset" "/Game/MyAsset.MyAsset:SubObject" -> "/Game/MyAsset" "/Game/MyAsset.MyAsset" -> "/Game/MyAsset" "/Game/MyAsset" -> "/Game/MyAsset"
static FWideStringView ObjectPathToPackageName ( FWideStringView InObjectPath )