Upgrade from v1.x.x to v2

Main asset

The v2 asset will not properly install over the v1 package, please carefully follow the instructions to keep your settings and waypoints.

circle-exclamation

Download the following tool that will prepare your v1 package for upgrade:

Import the UpgradeTool package into your project

Run the tool

Run Upgrade Tool

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.

Moved Files

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.

Delete 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 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.

Remove defines

Open the Settings Window

circle-exclamation

Go to Settings Window -> Scene Setup -> Vehicle Types and press Save

circle-info

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.

circle-exclamation

Easy Roads

circle-info

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.

CiDy

circle-info

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.

Last updated