Can't reference UI Widget Asset in Verse Code

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Assets

Summary

When instantiating an object from a custom widget class (reflected in the Assets file) and adding it to the player’s UI, the game session fails to start. A “Project Moderation Warning” appears, indicating that one or more of my assets violate the Epic Content Guidelines. Clicking the “Open Creator Portal” button opens a blank window in my default browser.

The warning disappears, and the session can start once the reference to the custom widget is removed from the code.

Steps to Reproduce

  1. Add a custom UMG Widget Blueprint to the project. Make sure it appears listed in the Assets.digest.verse file. In this example, I’ll be adding it to a UI folder.
  2. Add a Creative Device, then instantiate an object from the custom Widget class: Widget : UI.ExampleWidget = UI.ExampleWidget{}.
  3. Add this widget to the player UI, could be in the PlayerAdded event or anywhere else.
  4. Build the Verse code, add the Creative Device to the level, and try to Launch Session.

Expected Result

The session would start normally and the widget would appear in the Player’s UI. If the error is intended, that message should be more precise in identifying the issue, as it incorrectly pointed to asset guidelines problem when the actual cause was an illegal code reference, which took hours to diagnose.

Observed Result

The session doesn’t start and instead a Moderation Warning button appears in the top bar. Clicking the button shows the warning “One or more of your assets violates the Epic Content Guidelines. For the list of these assets go to the Creator Portal. You must ensure that all of your assets comply with the guidelines. Continued violation will result in your project being locked.” There is a Open Creator Portal button which just opens a blank page, and I couldn’t find any list of assets by manually going to the Creator Portal.

Then, by removing the Example Widget asset from the code and rebuilding it, I am able to Launch Session without any issues.

Platform(s)

PC

Bumping! Related ticket: Issues v29.30-30 with Exposed Widgets - #25

Has anybody found any solutions to this or gotten it working somehow?