Announcement

Collapse
No announcement yet.

How do you load a Widget by File from within a Plugin's Content Folder?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do you load a Widget by File from within a Plugin's Content Folder?

    Trying to reference a file from within a plugin's content folder within some C++ but I cannot figure it out.

    Some of my attempts are as shown below

    Code:
     static ConstructorHelpers::FObjectFinder<UClass> testObj(TEXT("Blueprint '/ExamplePlugin/Content/ExampleWidget.uasset'"));
    Code:
    FStringClassReference test = IPluginManager::Get().FindPlugin(TEXT("ExamplePlugin"))->GetContentDir() / TEXT("ExampleWidget.ExampleWidget");
    Can anyone point me in the right direction?
Working...
X