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"

Cant create arrow component C++.

This might be a stupid question, but I am trying to create an arrow component in a c++ class but it fails... I wrote this in the header file:

 UPROPERTY(VisibleDefaultsOnly, Category = Extras)
 class UArrowComponent* Arrow1P;

and wrote this in the source file, in the constructor:

 Arrow1P = ObjectInitializer.CreateDefaultSubobject<UArrowComponent>(this, TEXT("Arrow"));

The errors I'm getting are:

use of undefined type 'UArrowComponent'

'StaticClass': identifier not found

cannot convert from 'UObject ' to 'UArrowComponent '

All errors are from UObjectGlobals.h

Any help?

Product Version: Not Selected
Tags:
more ▼

asked Jan 28 '15 at 03:10 PM in C++ Programming

avatar image

Snowcrash5
97 12 12 17

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

1 answer: sort voted first

Hi,

Try to add next string:

 #include "Components/ArrowComponent.h"

Hope it helps!

more ▼

answered Jan 29 '15 at 10:03 AM

avatar image

Gleb.Bulgakov
1.8k 76 19 143

avatar image Snowcrash5 Jan 30 '15 at 12:07 AM

That did it! Thank you.

(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