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"

Adding variables to spline point struct

I'm working on car AI that follows splines and I want to add variables to spline points, for example school zones or speed limits etc. I think I could do this by making a child struct of FSplineCurves and replacing it in a child class of USplineComponent, and exposing those variables to blueprint.

But is there a way to edit and show this in the editor in a visually, for example clicking on spline points and checking boxes for "bIsSchoolZone" or typing in a speed limit for this spline point? Not just editing an array of structs?

Product Version: UE 4.18
Tags:
more ▼

asked May 15 '18 at 09:21 PM in C++ Programming

avatar image

wilsonc
35 1 4 7

avatar image wilsonc May 15 '18 at 09:26 PM

Here's a picture to explain what I'm looking for. Would it be possible to have spline variables editable like this, and not in the details panel on the right? Or at least be able to select individual spline points and have their struct variables in the details panel?

Thanks in advance.

alt text

avatar image wilsonc May 17 '18 at 09:38 PM

Looked around a bit and it seems like the best way is to make a Component Visualizer as a plugin (https://wiki.unrealengine.com/Component_Visualizers#Registering_Your_Visualizer). I'll keep this thread updated if I have any luck.

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

0 answers: sort voted first
Be the first one to answer this question
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