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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

UPROPERTY BlueprintReadWrite not work

Hello Guys sorry about my english rsrs, I have a terrible problem with Visual Studio 2015(Without updates)... I created a class but when I compile the class 2 errors appear on Error List, I made some tests and the error is because "BlueprintReadWrite" is not recognized, when i starting to write and the suggestions to complete appears that arg isn't showing. If I comment this part of code in both files .h and .cpp the complilation accurs normally. Can someone help me please?

My code is:

public: //Make Health Property UPROPERTY(BlueprintReadWrite, EditAnywhere, Catergory = "Base Character") float health = 100;

Product Version: UE 4.10
more ▼

asked Aug 29 '16 at 01:44 PM in C++ Programming

avatar image

1 1 2

avatar image mdonge Aug 29 '16 at 05:50 PM

"UPROPERTY(BlueprintReadWrite, EditAnywhere, Catergory = "Base Character")" must be on his own line, not the same that the // comment ... Maybe ?

avatar image indygoof Aug 29 '16 at 06:23 PM

That happens when you dont mark the code part as code; Usually in these posts a single linebreak is ignored automatically, thus everything on one line.

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

1 answer: sort voted first

is the pasted code the same as in your .h file? If so, you got a typo for "Catergory" -> "Category"

Also, do you have a "GENERATED_UCLASS_BODY()" in your .h file?



more ▼

answered Aug 29 '16 at 03:36 PM

avatar image

830 26 15 41

(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