Is it true that Splines (except landscape splines) cannot be used in the current build?
i tried creating a new placeable class (extending AActor) with a USplineComponent but it (the component didn’t, the placeable class did) wouldn’t show up in the editor.
Then i tried adding my own component to this class instead which extended USplineComponent. This gave the error that it cannot find USplineComponent as a class or struct.
I tried extending UPrimitiveComponent instead of USplineComponent and this did work, so i assumed it had to be something to do with the USplineComponent.
i’ve already deleted all the files since they seemed useless, but if necessary i can easily recreate them.
if any additional information is needed please let me know.
It may take a little to get an answer to your question. Most of the people who know how to help you with Splines are currently at E3. I am working on finding out as much as I can until they get back. You will be updated. Thank you for your patience with us.
We do not currently have placeable spline support, outside landscape. We do want to add support for spline components in a general way, so they can be incorporated into Blueprints (for example), but we don’t have a schedule for this feature yet.
Right now they can be manually placed using landscape mode in the editor. After creating a landscape, you can scroll through the options to spline placement. Ctrl+Left Clicking on the landscape will place the splines. Once placed, you can add static mesh components to create things like paths, roads and rivers. For more information about landscape splines and what all they can do, consult your manual by pressing F1 in the editor. I hope this helps, if there is anything else we can assist you with, let us know.
This gave the error that it cannot find USplineComponent as a class or struct.
Adding a new actor with a SplineComponent seems to be working for me.
You could try forward declaring it first then including the spline component header in your cpp file.
In the case of basing a new component off of it you need to do one of the following:
Include the header file for the spline component “EngineSplineClasses.h” (sorry the component is in a strange place right now) first.
or
If you have a project set up there is also a precompiled header you can use to include other headers so you don’t have to include them directly into other header files.
For example if I made a new code project called “MyProject” it will generate a “MyProject.h” which can be used to include other headers.
Thanks for the answer, i’ll try that as soon as possible.
There is however one little note, USplineComponent as a class is located in “SplineComponent.h” and “EngineSplineClasses.h” doesn’t exist (using version 1627304)
Oh and is there any reason not to make it placeable anymore (like it is in UE3’s UDK)?