Game Resources

Game Resources offers a comprehensive system for managing in-game resources. Using Gameplay Tags, it allows easy definition and manipulation of various resource types like currencies or energy. The plugin features automatic regeneration, entity-specific resources, and UMG integration through MVVM architecture. Game Resources enables you to easily implement resource mechanics in your game and is suitable for various game genres requiring detailed resource management.

Setup

Add Gameplay Tags to identify resources. Each resource requires 1 Gameplay Tag. Use the IndieGameKit.GameResources.* space.

Gameplay Tags

Create a new Data Asset to configure your game resources.

Data Asset

Pick GameResourcesDataAsset as class for Data Asset instance.

Pick GameResourcesDataAsset as class for Data Asset Instance

Configure your game resources.

Data Asset Content

Go to Project Settings > Plugins > IGK Game Resources and specify the previously created Data Asset

Game Resources Settings

Usage

Increase
Decrease

UMG Viewmodel

Inside the Widget Designer, you need to select a ViewModel.

Add ViewModel to Widget

Select the added ViewModel and click the Details tab. In it, give a clear name and select Resolver for Creation Type. Next, select the tag indicating the Game Resource to be tracked. See the screenshot below.

ViewModel Details

In the usual way, use the View Bindings tab to associate a value with UI elements.

View Bindings

Last updated