Manual | Unity RTS Engine Documentation (2024)

Welcome to the Unity RTS Engine manual! Please do not hesitate to share your feedback regarding the documentation, it would only help to make it better for everyone!

  • Frequently Asked Questions: Most frequent asked questions and fixes to the issues you might face when working with the RTS Engine.

Main Guides

If you are new to the RTS Engine, please make sure you go through the following tutorials, at least once in the order they are presented at. This would allow you to gain an overall knowledge of the main workflows of the RTS Engine and the features it has to offer.

SectionDescription
Set New MapSetup a map scene from scratch where you can have a functional RTS game.
BuildingsCreate a building prefab that can be used in a map scene.
UnitsCreate a unit prefab that can be used in a map scene, configure unit movement and an introduction to creating and handling tasks and UI.
Placing BuildingsGo through the essential configurations and components that enable building placement and construction.
ResourcesCreate resource types and use them in different aspects of the game and handle the collection of these resource types.
CombatEnable combat capabilities on units and buildings and explore various options to customize an attack.
UpgradesCreate upgrades for entities and for entity components and execute them as tasks.
CameraThis section goes through setting up the main camera controller.
NPC FactionsExplore the components necessary for managing the NPC faction behaviour.

Additional Guides

SectionDescription
Setup Tasks QueueA tasks queue allows the local player to hold down a key, launch commands on an entity without them taking effect directly but instead having them added to a queue and then executed by the entity in order of launch.
Setup Fetching Spawnable PrefabsWhen each map scene is initialized, the map loads a set of entities that are allowed to be created and used in the map scene. These are referred to by the Spawnable Prefabs. Learn how to pick which entity prefabs can be used in a map scene.
Handle Faction Defeat ConditionBy default the RTS Engine offers two faction defeat conditions (destroying all faction entities or destroying the main faction entities). This guide goes through setting up your custom faction defeat condition.
Setup Universal RPSetup the Universal Rendering Pipeline to work with the RTS Engine.

Module Guides

Modules are packages that can be imported into your RTS Engine project to introduce new features and systems that you can hook up directly to your project.

This section provides instructions on how to get started on using the officially supported RTS Engine modules.

ArticleDescription
Singleplayer ModuleOffers a sample for a singleplayer lobby.
Mirror Multiplayer ModuleUsing Mirror Networking, this module allows to setup multiplayer lobbies and games with the RTS Engine.
A* Pathfinding Project ModuleThis module enables unit pathfinding to use the A* Pathfinding Project asset.
Fog Of War ModuleThis module is an integration of the Fog Of War asset on the Asset Store.
Basic NPC ModuleIncludes components that track a NPC faction's progress then determines its behavior and its goals within a game.
Basic UI ModuleIncludes components that listen subscribe to the RTS Engine events and draws the UI accordingly to the actions the local player is executing.
Advanced Selection ModuleEnables advanced entity selection options.
Minimap ModuleAdds a minimap to your RTS Engine game and enables interactions between the player, game events and the minimap.
Save SystemAllows to save and load the progress of a RTS Engine game.
Advanced Building PlacementProvides advanced systems for building placement such as grid placement and segmentation placement (allowing for placing walls).
Mobile ControlsProvides touch controls for mobile devices.

Programming Guides

This section of the manual includes guides regarding how you can use the RTS Engine API to customize your game even further!

These guides assume you have enough knowledge about the general workflow of the RTS Engine systems, the structure of a RTS Engine map scene and entity prefabs..

ArticleDescription
Create an Entity ComponentThis guide provides an introduction for creating entity components, which are components that can be attached to children objects of an entity prefab to handle a behavior for the entity.
In this guide, you will go through the creation of an Entity Seller component that allows the player to sell a faction entity by clicking on a task in the task panel while the entity is selected, destroy the entity and get resources for it.
Create a Game ServiceProvides an introduction on creating game service components, which are manager components that must be placed on a child object of the object containing the Game Manager component.
In this guide, you will go through the creation of a very simple Unit Wave Spawner component that allows to create unit instances every period of time and move the created unit instances towards a position after they spawn.
Integrate Custom Pathfinding SolutionHow to integrate pathfinding solutions other than Unity's navmesh system and the officially supported pathfinding solutions.
Manual | Unity RTS Engine Documentation (2024)

References

Top Articles
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 5992

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.