This a guide that helps you upgrade from v1.4.0 to v1.4.1.
If you have just recently started using the RTS Engine and haven’t made much progress in your current project, it’s recommended that you download the 1.4.1 version and start from scratch.
The 1.4.1 deprecated the old task system and replaced it with a new one that’s more modular and better performant. This guide will walk you through collecting the task launcher attributes from v1.4.0 and convert them to the new task system in v1.4.1 so you don’t to manually re-assign them:
- Make sure to backup your RTS Engine project in v1.4.0.
- Make sure that the unit and building prefabs are placed under a path that ends with \Resources\Prefabs in your project.
- Open your RTS Engine project in v1.4.0, download the Task Launcher Attributes Collector package and import it into the project.
- From the RTS Engine top-menu bar, click on Collect Task Launcher Attributes. This will go through all prefabs and collect their task launcher related attributes into asset files (one asset file per task launcher). The asset files that contain the task launchers’ attributes are located in the following path: Assets\RTS Engine Update Helper\Resources\Attributes\
- Select all the generated asset files and export them into a package.
- Remove the RTS Engine Update Helper folder from your project.
- Import the v1.4.1 update from the asset store.
- Download the Task Launcher Attributes Converter package and import it into the project.
- Import the exported asset files that contain the task launcher attributes.
- From the RTS Engine top-menu bar, click on Convert Task Launcher Attributes. Assuming that the unit and building prefabs that have the Task Launcher components attached to them are still in a path that ends with \Resources\Prefabs in your project, this process will convert the attributes included in the asset files into those prefabs.
- Finally remove the RTS Engine Update Helper folder from your project.
There’s also a few more things that you need to set up manually:
- The UI Manager has been updated (re-written from scratch to be more modular) so in each map scene, you need to manually re-assign UI Manager related attributes. It’s now simpler and more user-friendly. Check out the UI Manager documentation page for more information.