Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. NPC Factions
  4. NPC Resource Collector

NPC Resource Collector

The NPC Resource Collector is responsible for the collection of resources.

When creating a new NPC Manager object using the RTS Engine menu. The NPC Resource Collector is a component of the new NPC Manager’s ‘NPCResourceManager’ child object.


  1. Collector Regulator: Drag and drop the NPC Unit Regulator asset that regulates the creation of the main resource collector unit.
  2. Collection Info List: This defines the resource types that the NPC faction is allowed to collect. For each resource type, a couple of settings must be set:
    1. Resource Type Info: Drag and drop the Resource Type Info asset that defines the resource type.
    2. Instance Collectors Ratio (between 0.0 and 1.0): This defines the ratio of the collectors that will be sent to collect an instance of this resource type to the available collectors slots.
    3. Max Collectors Ratio Range (between 0.0 and 1.0): This defines the ratio of the amount of collectors that can collect this resource type to the total amount of collectors available.
  3. Collection Timer Range (in seconds): Defines how often this component will check resources to collect.
  4. Collect On Demand: If other components request the collection of a resource, this field must be enabled in order for that request to be accepted.

How can we help?