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"

Function definition for 'UPROPERTY' not found

I'm going through the 3rd person power-up game with C++ tutorial,and on the third video Lauren uses a UPROPERTY to declare the PickupMesh in Pickup.h.

Using VS Community 2015, I can build the project fine within Visual Studio, however, UPROPERTY remains underlined with a green squiggly, and has the message: Function definition for 'UPROPERTY' not found alt text alt text

When I go to compile within the UE 4 editor however, it throws an error, stating Member variable declaration: Missing variable type. Pickup.h(44)

This is the same line as the UPROPERTY.

alt text

Going to try this in VS 2013 to see if it makes a difference.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 17 '15 at 02:02 PM in C++ Programming

avatar image

DaveVoyles
43 1 2 7

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

1 answer: sort voted first

Get rid of the ; at the end of the UPROPERY() macro.

more ▼

answered Dec 17 '15 at 06:39 PM

avatar image

joeGraf STAFF
1.5k 35 12 69

avatar image DaveVoyles Dec 17 '15 at 10:06 PM

Doh! N00b mistake. This solved it. Thanks!

(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