Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. Resources
  4. Resource Manager

Resource Manager

The Resource Manager component defines the map’s resource types and keeps track of all factions resources.

When you’re creating a new map using the RTS Engine menu editor, this component is attached to an object called “ResourceManager”.

  1. Resource Parent: All resources in the map must be children of one empty object that you drag and drop in this field at the sole exception of Resource Generator buildings since they don’t have an actual Resource component.
  2. Map Resources: A list that holds the available types of resources in this map. The amount of resource types you want to have in the map is the size of this list. Each resource type has a series of settings:
    1. Type: Drag and drop the Resource Type Info asset from the project tab into this field.
    2. Show UI: Show the local player the amount he has from this resource type in the UI? When disabled, the following two fields can be skipped.
    3. Allowed Faction Types: Allows to enable or disable displaying the resource’s count in the UI depending on the player’s faction type.
    4. UI Image: The UI object with an “Image” component that shows the resource’s icon.
    5. UI Text: The UI object with a “Text” component that shows the resource’s current amount.
  3. Auto Collect: When disabled, the resource collectors will have to carry collected resources to a drop off building before they can be added to the and used by the faction. When enabled, the resources will be automatically added to the faction once collected.
  4. Resource Selection Color: This is the color of the selection texture of each resource that is shown when a resource is selected.

How can we help?