Upgrade from v1.x.x to v2
Last updated
Last updated
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.
For every scene inside the project that has traffic waypoints do the following:
Open the scene.
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.
Notice, now it opens from the Tools menu.
Go to Settings Window -> Scene Setup -> Vehicle Types and press Save
If you get errors like this:
The type or namespace name 'VehicleLightsComponent' could not be found (or other type)
Add using Gley.TrafficSystem; at the beginning of your file.
Press Apply Settings and all should work as before but using v2.
Methods are now called using:
Gley.TrafficSystem.API.MethodName();
Follow all the above instructions.
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.
Follow all the above instructions
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.