hi there
I want to get the file system path of the selected asset in the content browser.
In C++, you can use FPackagePath::LongPackageNameToFilename to get the relative path of the asset and change it to absolute path. Is there a function like this in Python?
I want to get relative paths at once, like the LongPackageNameToFilename function, not parsing strings.
FString package_name = TEXT("/Game/FirstPersonCPP/Blueprints/FirstPersonCharacter");
FString DestRelFilename = FPackageName::LongPackageNameToFilename(package_name , ".uasset");
/* result is : "../../../../Users/test_user/Documents/Unreal Projects/MyProject/Content/FirstPersonCPP/Blueprints/FirstPersonCharacter.uasset"
*/