1. Home
  2. Unity RTS Engine
  3. Resources
  4. General Resource Components

General Resource Components

The resource’s parent object has the following Unity components. This documentation discusses the role of each one of this components.


Collider:

Collider component “Is Trigger” set to true. This collider represents the frontiers of the resource where no other object (whether it’s a building, another resource or any other object). This Collider can cover more than the resource’s model.


Navigation Mesh Obstacle:

Nav Mesh Obstacle component “Carve” set to true. This defines where units are not allowed on the navigation mesh around the resource object.


Worker Manager:

Worker Positions: The size of this array defines the maximum amount of collectors that this resource can have simultaneously. For each element of the array you can define a specific collection position in the “Pos” field if you want to make the collection positions static. If not, then the collection positions will be dynamic and the unit will pick the closest position to the resource as an interaction position.

How can we help?