Convert absolute path to in-game path

Hello,

Is there a method somewhere that can help me convert a full path

D:\LearningThunder\games\LineageNext\l2next-utils\Plugins\L2Next_Commons\Content\test

That I choose from directory browser in my UE4 plugin. (this is the path to search the assets in)

But actually my assets are located in this path (used copy refference in asset browser)

**L2Next_Commons/test/**1-1_2.1-1_2

So later if I would need to do this:

FStringAssetReference DiffuseAssetPath(MyPath);
UTexture* DiffuseTexture = Cast<UTexture>(DiffuseAssetPath.TryLoad());

MyPath should be using L2Next_Commons/test/ + assetname

So in the end:

How to convert this:

D:\LearningThunder\games\LineageNext\l2next-utils\Plugins\L2Next_Commons\Content\test

to this:

L2Next_Commons/test/

/Game should give you access to the Content folder. But usually what I do is just put some variables that I will then expose to blueprint. I can then create a BP derived from my cpp file and set whatever I want from the Content folder.

Oh my bad I did not read that right. try something like IPluginManager::Get().FindPlugin(TEXT("MyPlugin"))->GetContentDir();

No its incorrect, /Game will give me the access to content folder INSIDE the main Game, it will not give me the path to content folder inside a plugin

Thanks, Ill try something)