Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. Units
  4. APC Unit Component

APC Unit Component

The APC component allows units as well as buildings to call units and store them and eject them. Both units and buildings use the same component, the only difference is that units can store other units, move and then eject them in another place in the map.


Adding Units:

  1. Interaction Position: Transform that represents the position that a unit must go to to enter the APC.
  2. Force Ground Position: When enabled, this forces the interaction position to be on a ground terrain level for a unit when it is attempting to enter the APC.
  3. Allow All Units: When enabled, then all units can be stored in this APC.
  4. Accept Units In List / Codes List: Here you have the option to either define a list of units (by entering their codes/categories in the Codes List field) and make the APC accessible only to them (when Accept Units In List is enabled) or restrict access for the APC for them only (when Accept Units In List is disabled).
  5. Capacity: Maximum amount of units that this APC allows at the same time.
  6. Add Unit Audio: Audio clip played when a unit enters the APC.

Ejecting Units:

  1. Can Eject Single Unit: When enabled, for each unit inside the APC, a task with the unit’s icon will be drawn on the task panel if the APC is selected that when clicked, ejects the correspondent unit.
  2. Eject Single Unit Task Category: This is the “Eject Single Unit” task panel category.
  3. Can Eject All Units: When enabled, then the player will be able to eject all units inside the APC by clicking on one task only in the task panel (when the APC is selected).
  4. Eject All Units Task Category: Task category for that the task that ejects all units from the APC.
  5. Eject All Units Icon: The icon of the task that allows the player to eject all units from the APC.
  6. Eject Unit Audio: Audio clip played when a unit is ejected from the APC.
  7. Eject On Destroy: When the APC is destroyed, should units that are stored inside it be released or should they be destroyed as well?

For more information about the task categories, please check the UI Manager documentation page.


Calling Units:

  1. Can Call Units: When enabled, the APC will able to call units inside a certain range to store them. This is useful for safe buildings where you want to hide workers/civilians if your town is getting attacked for example. All the following fields must be only considered if this option is enabled.
  2. Call Units Task Category: Task category of the task that calls for in range units.
  3. Call Units Range: All units within this distance from the APC will be called to enter this APC.
  4. Call Units Icon: Icon of the task that calls in range units.
  5. Call Idle Only: When enabled, the APC will only call units that are idle.
  6. Call Attack Units: Can this APC call units that have an Attack component?
  7. Call Units Audio: Audio clip played when the APC calls for in range units.

How can we help?