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"

C++/VS Can't Find SplineComponent.h

I'm attempting to add a Spline Component to an Actor through C++ however Visual Studio doesn't appear to acknowledge SplineComponent.h in any way. I've loaded up my game's editor, and successfully added a SplineComponent to a Blueprint, physically (well virtually) verified SplineComponent.h inside the Source of 4.3 inside the Runtime/Engine/Classes/Components which I can open just fine, and I've also double checked to make sure my project rebuilt its project files with 4.3 as its version number (Right Click -> Switch Engine Version), attempted a search inside the Solution Explorer (with no results), and lastly I tried both class forwarding and using a #include of EngineSplineClasses as well as SplineComponent to no avail.

Yet I still can't seem to have any sort of class recognition of it, nor create a Subobject of it to add it to the class for use as a component, it simply does not seem to know it's there, including in the Solution Explorer.

However, when I'm typing in my include file, the suggestion box does come up with results for "SplineComponent.generated.h", just not the actual .h file.

Error: Cannot open source file "SplineComponent.h" SplineComponent is not a class etc

Product Version: Not Selected
more ▼

asked Aug 15 '14 at 10:57 PM in C++ Programming

avatar image

89 13 16 27

avatar image lukas84 Sep 23 '14 at 07:57 PM

bump. i am interested in it too

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

2 answers: sort voted first

I think i found it.

Add this before your include "X.generated.h"

include "Runtime/Engine/Classes/Components/SplineComponent.h"


more ▼

answered Sep 23 '14 at 08:24 PM

avatar image

398 47 50 159

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

I believe

#include "Components/SplineComponent.h"

works too.

more ▼

answered Mar 11 '17 at 02:41 AM

avatar image

588 17 79 89

(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