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.

Create a new Data Asset to configure your game resources.

Pick GameResourcesDataAsset as class for Data Asset instance.

Configure your game resources.

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

Usage


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

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.

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

Last updated