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 19, 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-attribute-system.git

Repeat the above steps for the other two dependencies (in the order specified below): https://github.com/sjai013/unity-gameplay-tags.git and then https://github.com/sjai013/unity-ability-system.git.

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. Add the Attribute System Component to the Gameobject that needs attributes, and add the attributes to the Attributes field in the Inspector.
  3. Create custom Attribute types by following the instructions in Custom Attributes.

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.
Clone this wiki locally