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"

EditAnywhere is not detected by Intellisense

Hi everyone,

I am using visual studio 217 15.8.7 with Unreal Editor 4.20.3.

My problem is when i write UPROPERTY in visual studio it detects and autocompletes it. But when it comes to givint parameters to this method VS doesn't help me.

You can also see that even if I write it correctly it doesn't look in the right color. I saw in tutorials it should look in different color. But I can compile and run my code it works fine. I think something is missing with my IDE setup.

I don't know what's wrong. Do I need to install some addon or something?

alt text

Thank you.

Product Version: UE 4.20
Tags:
unrealsoru.png (12.2 kB)
more ▼

asked Oct 12 '18 at 08:15 PM in C++ Programming

avatar image

cagdasalagoz
9 1 2 8

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

1 answer: sort voted first

That those macro are "hacks" going beyond standard of C++, by standard in macro you type in anything and compiler simply paste thing in right point as macro was programmed to and UPROPERTY options don't physically exist in UE4 APIs so Intellisense can not see it. Sometimes you may find flags showing up in suggestion which may hint you a little that this option exists, but thats it.

Way those macros work is that they are empty dummy macro and they are declared in C++ (that why it autocomplete) to make compiler bypass it and tool that reads those macros is UnrealHeaderTool (UHT) which runs before compiler and generates extra header files (once that you include *.generated.h) and extra cpp file which registers those class elements to reflection system based on those macro locations.

UE4 uses some other hackish things that confuses IntelliSense thats why it not really reliable specially in error detection, lot of people recommend to use Visual Assist instead as it supposedly better work with UE4 but i not using it myself so im not sure on what degree it is

more ▼

answered Oct 12 '18 at 08:30 PM

avatar image

Shadowriver
37.8k 937 172 1123

(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