Quick Start Guide

Step 1: Download Plugins

Find the Nihilo Gateway Plugin on Fab.
Download it, and it's dependency (Nihilo Core plugin).
In the Epic Games Launcher -> Unreal Engine -> Library, ensure that both plugins are installed to the engine your project uses.

Step 2: Enable Plugins in Editor

With your project editor open, navigate to Edit -> Plugins.
UE5 Plugins Nav
  1. In the search bar, enter "Nihilo". This should find both of the required plugins.
  2. Enable the Nihilo Core dependency plugin.
  3. Enable the Nihilo Gateway plugin.
  4. When ready, restart the editor.
warning
Remember to save any important work before restarting the editor!
Enable Gateway
check_circle
That's it! Your project is now equipped with the Gateway plugin.

Step 3: Create the DataAssets

  1. Open the content drawer, open the preferred directory, then right click on the empty space, or click "Add".
  2. Select Miscellaneous
  3. Select Data Asset
Search for "Gateway Data"
To get the most out of Gateway, you will want to create at least one of each:
  1. GatewayStatData
  2. GatewayChallengeData
  3. GatewayRewardData
info
You are free to create as many of each data asset class as you'd like. Just remember to add them to the project settings.
For help with adding data to these, check these resources:
  1. Adding Stats
  2. Adding Challenges
  3. Adding Rewards

Step 4: Add the DataAssets to the Project

Navigate to View->Project Settings -> Plugins -> NihiloFramework - Gateway. Add the DataAssets to their respective arrays.

Step 5: Attach Gateway Component

Simply attach the Gateway Component to your PlayerState class.
warning
The Gateway Component must be attached to a PlayerState class. PlayerController or Character will not work.

Step 6: Update Stats

Updating stats typically involves using the Gateway Library Blueprint Function Library API.
In any blueprint, search for "Gateway" and the whole list of API functions will appear. The simplest for updating a stat is UpdateStatForPlayer:

Step 7: UI

If your project doesn't need UI widgets, but you'd like to monitor the stats while debugging, consider using the debug overlay This allows for a very quick and easy way to watch the values, without standing up a whole UI system.
However, if your project does require UI, consider consulting the UI Guide.