How to create a UTexture2D object from Content Browser dynamic

I want to design a game product system,but now I meet a problem.when the game begin play,it will create product system object,so it need resource to create product object from content browser such as Textrue,

When I use FObjectFinder,it didn’t work, this only works in constructor,so I don’t know how to dispose this problem.

I hope someone can help me. Thanks very much!

Might find your answer on this question :

The basic gist is this :

Cast<UTexture2D>(StaticLoadObject(UTexture2D, NULL, TEXT("Texture2D'/Game/your-icon.your-icon'")));

The TEXT(“Texture2D’/Game/your-icon.your-icon’”) can be retrieved by right clicking on a resource in your content browser and selecting copy reference