Resources
The following tutorials go through creating resource types and using them in different aspects of the game.
Article | Description |
---|---|
Create Resource Type | Create a new Resource Type that is defined by a scriptable object holding the resource type's properties. |
Define Resource Type In Map | Define a resource type in a map scene to make it usable in that map, configure resource related UI elements and use resource as a cost for building placement. |
Create Resource Entity | Create a Resource entity is an entity that can be collected by a unit in the game in exchange for resource points that are awarded to the unit's faction. Go through all of the resource entity's main components, including Resource Health, Resource Selection, and Resource Worker Manager components. |
Add Resource Entity To Map | Add instances of the resource entity to a map scene and configure the Resource Manager component. |
Setup Resource Collector Unit | Add the Resource Collector component to a unit prefab to allow it to collect resources. |
Enable Resource Drop Off | Enable resource collector units to drop off resources at a drop-off target point (building) for them to be actually collected and added to the faction's resources by working with components such as Drop Off Target and Drop Off Source. |
Use Capacity Resource | Create a capacity Resource Type, which has an expandable upper limit and use it as a unit population slot counter and capper. |