Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Setting up your project

Sahil Jain edited this page Apr 22, 2021 · 5 revisions

Initialise the Project

Create a new Unity project, or open an existing one.

Import packages

Import the required packages using the Unity Package Manager:

  1. Select Window | Package Manager
  2. Select the + icon, and select Add package from git URL
  3. Copy-paste the URL https://github.com/sjai013/unity-gameplay-ability-system.git#upm

This will import the latest version of the Gameplay Ability System package.

Set up the Attribute System

  1. Create Attribute assets to represent the various stats your game requires (Assets | Create | Gameplay Ability System | Attribute). Give the asset a descriptive name, and optionally specify a value for the "Name" of the asset in the Inspector.
  2. Create custom Attribute types (if required) by following the instructions in Custom Attributes.
  3. Add the Attribute System Component to the Gameobject that needs attributes, and add the attributes to the Attributes field in the Inspector.
  4. Create custom Attribute Events and assign them to the Attribute System Events field in the Inspector for the Attribute System Component.

Set up the Ability System

  1. Add the Ability System Character component to the Gameobject that represents the character with abilities (usually the same Gameobject that has the Attribute System Component.
  2. Assign the reference to the Attribute System Component in the Inspector.