The v2 asset will not properly install over the v1 package, please carefully follow the instructions to keep your settings and waypoints.
Back up your project before doing anything else.
If something goes wrong you might need to redo your entire road network so we strongly suggest backup before doing anything else.
The tool will copy the files that need to be kept automatically. The following image shows the files that were copied from v1 folders to be kept.
If you see the following error, just click Cancel. It means that you are not using some files inside your project.
Delete the old plugin's folders.
Import V2 plugin
After all the above steps are made you are ready to import the new plugin.
For every scene inside the project that has traffic waypoints do the following:
Open Debug Window : Tools -> Gley -> Traffic System/Debug
Press Remove Unused Scene Objects
Press Remove Unused Project Scripts
Go to Player Settings and remove GLEY_TRAFFIC_SYSTEM and any other defines that are Gley related.
Open the Settings Window
Notice, now it opens from the Tools menu.
Go to Settings Window -> Scene Setup -> Vehicle Types and press Save
Press Apply Settings and all should work as before but using v2.
Methods are now called using:
Gley.TrafficSystem.API.MethodName();
Open Settings Window -> External Tools -> Easy Roads and press Enable Easy Roads Support
If the above step is missing, Apply Settings will fail with an error.
Open Settings Window -> External Tools -> Cidy 2 and press Enable Cidy Support
If the above step is missing, Apply Settings will fail with an error.