The implementations in this chapter are simplified versions of the code of a more complex system, but if you take the time to review an advanced version of the level editor in the /FPP folder of the Git project, we will see some improvements, such as the following:
- Segments: There's an authoring pipeline for segments that uses ScriptableObjects.
- Object pooling: The TrackController class is using an object pool to optimize the loading time of individual segments.
I didn't include these optimizations in the chapter to keep the code examples short and simple, for educational purposes.