Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UWidgetBlueprintLibrary Gives Linker Errors - Functions Are Missing In Pre-Compiled Engine!

There appears to be some Documentation errors on the UWidgetBlueprintLibrary.

GetAllWidgetsofClass doesn't appear to be accessible to any other class. I've included the "UMG", "Slate" and "SlateCore" Modules into my projects build.cs file, but still get the following issue. This has been reported numerous times with no official feedback yet.

Another post here: https://answers.unrealengine.com/questions/149587/uwidgetblueprintlibrary-linking-error.html

Here's my code:

 #include "GESGame.h"
 #include "GESGame_MenuController.h"
 #include "WidgetBlueprintLibrary.h"
 void AGESGame_MenuController::ClearHUDWidgets()
     TArray<UUserWidget*> FoundWidgetArray;
     UWidgetBlueprintLibrary::GetAllWidgetsOfClass(this, FoundWidgetArray, UUserWidget::StaticClass(), false);
     for (UUserWidget* Wdgt : FoundWidgetArray)
     GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::Red, FString::Printf(TEXT("Clear Widgets")));

This class is a Sub-Class of APlayerController.

At compile time, the headers all build just fine but when compiling the .cpp module I get a linker error. The function exists in the code that comes with the pre-compiled version of the engine, but I sense that the pre-compiled version is not actually accurate to the code that comes with it.

Product Version: Not Selected
more ▼

asked Apr 10 '15 at 10:20 AM in Bug Reports

avatar image

810 56 92 139

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Those blueprint libraries were not exported from the DLL, so you can't link against them. I'm changing them for 4.8 to be exported.

more ▼

answered Apr 10 '15 at 02:58 PM

avatar image

Nick Darnell ♦♦ STAFF
6k 77 36 151

avatar image TheJamsh Apr 11 '15 at 03:29 PM

Thanks Nick!

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question