Can`t find Widget Blueprint class

Hello, everybody.
Trying to do this:

   static ConstructorHelpers::FClassFinder <UUserWidget> YourBlueprintName(TEXT("WidgetBlueprint'/Game/UMGWidgets/GameMenu.GameMenu'")); 
if (YourBlueprintName.Succeeded()) 	{ 		MyMenuWidget = YourBlueprintName.Class; 	}

and YourBlueprintName is always NULL, so it can`t find my Widget Blueprint. Can anybody tell why?

I think problem is in type declered in path WidgetBlueprint is UWidgetBlueprint which is asset type which inherence from UBlueprint not UUserWidget. Try removing WidgetBlueprint'and 'at the end of path, based on some example in source code this should work with path allone, or try UserWidget'/Game/UMGWidgets/GameMenu.GameMenu_C'

1 Like

Thank you very much. UserWidget'/Game/UMGWidgets/GameMenu.GameMenu_C' works.

Having the same problem and used that example but doesn’t work for me for some reason.

If you are manually writing the path, or using Copy Reference in the Content Browser, the problem may be the path. If you look at the example above it is:


If you were to use Copy Reference on that item you would get:


What I do is:

  1. I get a WidgetComponent and set the desired UserWidget there.
  2. Right-click on the Widget Class field of the WidgetComponent and copy that path.
  3. I remove the unnecessary parts in the beginning and use that as the path.