x

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"

FSupportedAreaData not exported.

Currently, FSupportedAreaData is not marked as ENGINE_API and therefor it leads to an unresolved linker error when trying to use it.

Steps are easy to reproduce:

  1. Include Engine in your game/plugin/whatever module.build.cs (If it isn't already there..)

  2. Attempt to create FSupportedAreaData instance.

  3. Get unresolved linker error.

Why should this be fixed:

  1. Creating custom navigation data is rather hard (impossible) without having the ability to add supported areas.

For example, in my current use case I'm deriving from AAbstractNavData to create a custom waypoint graph to be used by Flying AI. I'm fairly sure that adding SupportedAreas is something anyone trying to create custom NavigationData (without circumventing the navigation system entirely) is going to need.

Product Version: UE 4.14
Tags:
more ▼

asked Jan 16 '17 at 12:20 AM in Bug Reports

avatar image

zacharymwade
556 27 4 23

avatar image Sean L ♦♦ STAFF Jan 17 '17 at 02:20 PM

Hey zacharymwade,

Could you provide the related code that you're using to create your FSupportedAreaData instance so I can ensure we're using the same setup?

avatar image zacharymwade Jan 17 '17 at 05:52 PM

Sure, no problem at all. The commented line throws the unresolved linker error.

 AWaypointGraph::AWaypointGraph() 
 {
     RuntimeGeneration = ERuntimeGenerationType::Static;
 
     if (HasAnyFlags(RF_ClassDefaultObject) == false)
     {
         FindPathImplementation = &FindPath;
         TestPathImplementation = &TestPath;
 
         FindHierarchicalPathImplementation = &FindHierarchialPath;
         TestHierarchicalPathImplementation = &TestHierarchialPath;
 
         RaycastImplementation = &Raycast;
 
         //SupportedAreas.Add(FSupportedAreaData(UNavArea_Default::StaticClass(), WAYPOINTGRAPH_DEFAULT_AREA));
     };
 };

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

1 answer: sort voted first

Thanks for providing the code.

I've reproduced your issue and entered a bug report, which you can track using the link below:

https://issues.unrealengine.com/issue/UE-40739

Have a great day!

more ▼

answered Jan 17 '17 at 06:55 PM

avatar image

Sean L ♦♦ STAFF
44k 485 149 438

(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