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"

Intelisense or ?!

Hi

Same with new Fresh project. No settings change in VS. What happens ? Cant use TQueue (and maybe some other thing) and all xxx::xxx seem to be invalide. Sometime, no compile error, sometime i have... but no intelisense help too... Wtf ?

alt text alt text alt text

Product Version: UE 4.21
Tags:
tqueue.png (79.8 kB)
qerror.png (4.2 kB)
thread.png (7.2 kB)
more ▼

asked Feb 28 '19 at 12:28 PM in C++ Programming

avatar image

BigBadWouf
10 2 4

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

1 answer: sort voted first

Did you include those classes ( like #include "Containers/Queue.h" )?

Also, did you try to build it and checked the actual errors in the Output Window (IntelliSense is not reliable for UE4)?

more ▼

answered Feb 28 '19 at 01:14 PM

avatar image

KristofMorva
1.4k 5 5 7

avatar image BigBadWouf Feb 28 '19 at 03:28 PM

I never needed to include anything more to use TQueue before ! Just create new project, add c++ class, and no more.

Include "Containers/Queue.h" or "RunnableThread.h" correct the issue, but dont explain what happens, why i need to add that now ? Why in fresh project too ? And in older project all is fine without that.

avatar image KristofMorva Feb 28 '19 at 03:43 PM

In older UE4 versions it was monolithic indeed, but at some point it has changed to improve build times, so now you'll have to include everything you'd like to use.

avatar image BigBadWouf Feb 28 '19 at 03:51 PM

Yeah,but i dont change the UE4 version between old and fresh project,so,its very weird, no ?!

I guess the issue is relative to VS, but my knowledges of VS is very limited !

avatar image KristofMorva Feb 28 '19 at 04:02 PM

You might have had an import last time, which brought many other things.

Anyways, the point is, always include specifically whatever you use, and don't include unnecessary things, as it'll affect your build times.

avatar image BigBadWouf Mar 01 '19 at 10:16 AM

Okay, but that's not an explanation of why VS changed behavior.

15 days ago, I created a ThirdPerson blueprint project in which I can use TQueue, threads and references to UWorld without having to add any headers. There has been no Unreal Engine update since, why when I create a project now, I do not have the same behavior anymore?

I agree on the build time, but me it annoys me to waste time looking for his headers for such simple things. So I would like to find the same behavior in my VS.

(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