As I stated in my Race 1 page, the process of renaming marks in unity editor was very time consuming so to save time I came up with a script that would allow me to change every single child game object of a parent object and add a number going up 1 by 1. This saved me alot of time and effort doing it all manually, here is the script and how it works:
here is the code that I made, the code works by creating a new window in the editor when the user right clicks on the parent object which is the Track waypoints game object
Here is what the results look like, start index is the first number it stars with and children prefix is the name of what the child objects will be.
Here's the before and after:
Reflection:
This system works exactly how I intended it to and it saves me a lot of time changing the names of game objects. This situation could possibly have been avoided if the AI system didn't need exact numbers on the game objects to work, if the marks could still have been readable with the brackets then I wouldn't need to change the names at all. However this name changing system works perfectly and saved me time.