I have derived a class from USplineComponent, and another class from USplineMetadata to use with it. For both classes I have basically copied the code from the water plugin implementation for water spline and adjusted it to fit my needs. In water plugin, when a spline point is selected in the editor, under “selected points” there are some extra properties for the point specific to the water spline. How do I go on about adding such a thing for my own spline class in C++? Does it have anything to do with the spline component visauliser or spline metadata details? Any answer is much appreciated.
Sorry for late answer, but to those who need:
- You should take care of spline data points tranfer between instances, as you move component in editor. Check this article: Unreal Engine 5: Spline point metadata – Mint Banjo section about standalone component in the end.
- You need to use custom details panel for your component (derive from IDetailCustomization)
- For your needs you may have to derive your visualization class, from FSplineComponentVisualizer.
- Don’t forget to do it with two modules : runtime and editor.