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"

Can't seem to use UFUNCTION/UPROPERTY with UBlackboardComponent

I'm trying to expose either a variable or setter function for my UBlackboardComponent on a character, however any time I add a UFUNCTION/UPROPERTY to it my build files with errors like

 error LNK2019: unresolved external symbol "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UBlackboardComponent_NoRegister(void)" (__imp_?Z_Construct_UClass_UBlackboardComponent_NoRegister@@YAPEAVUClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static struct UE4CodeGen_Private::FObjectPropertyParams const Z_Construct_UClass_AVisitor_Statics::NewProp_Blackboard''(void)" (??__E?NewProp_Blackboard@Z_Construct_UClass_AVisitor_Statics@@2UFObjectPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)


 Binaries\Win64\UE4Editor-BYOC-4485.dll : fatal error LNK1120: 1 unresolved externals

If I remove the UFUNCTION/UPROPERTY from either a setter or variable, the error goes away and my code is just fine, so can I not expose something that uses a UBlackboardComponent to blueprints?

Product Version: UE 4.21
more ▼

asked Dec 12 '18 at 07:12 PM in C++ Programming

avatar image

6 1 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Have you added the AIModule to your list of dependencies? Check in the *.build.cs file and look for your PublicDependencyModuleNames. Make sure you have "AIModule" added into that list.

more ▼

answered Dec 13 '18 at 10:56 PM

Brian Johnstone (suspended)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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