I want to get texture resource path from UTexture class with C++.

HI.
I want to get a texture resource path from UTexture class with C++.

UMaterialInstance* m = (UMaterialInstance*)SelectedAssets[i].GetAsset();
UTexture* BaseColorTexture;
UTexture2D *BaseColorTexture2D;
m->GetTextureParameterDefaultValue(FName("Base_Color_Texture"),BaseColorTexture);
BaseColorTexture2D = (UTexture2D*)BaseColorTexture;
FString fullName = BaseColorTexture2D->GetPathName();

UTexture2D and UTexture are unable to get resource file path.
I received the wrong path.
What should I do? Please help.

I figure out this case should be using “GetTextureParameterValue”.