Hi there,
I’d like to move my project from Unity3D to Unreal Engine 4.
I’ve implemented some editor extension for AI (look at the image below. It’s not my extension, but it’s similar to my implementation) in Unity3D and I’m wondering what is the right way to extend the Unreal level editor.
I have a class with array that contains segments. Segment structure consists of three Vector3 variable: left side, right side and race line. How can I create new segments from level editor and how to change positions of the Vector3 variables? Is there something like a [Handles class][1] in Unity3D?
I’ve tried to find some documentation or tutorial but no luck.
You an use construction script. Define a BP with 3 vector variables (whcih are public) for left, right and race line. In their properties, enable ‘Show 3D Widget’. This will allow you to move the Vectors in the editor itself (like a handle).
To have multiple segments (like you have in the image), perhaps, you will need to define a a new BP and add an array of Segments in it. Then you can have as many segments as you want with each segment having the 3 vector components you want.
Then using the construction script, you can actually generate the track live.
NOTE: I might also be possible to use a struct instead of the first BP. But I am not sure if you get 3D widgets with them though.