This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
Setting up your project
Sahil Jain edited this page Apr 22, 2021
·
5 revisions
Create a new Unity project, or open an existing one.
Import the required packages using the Unity Package Manager:
- Select
Window | Package Manager
- Select the
+
icon, and selectAdd package from git URL
- 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.
- 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. - Create custom Attribute types (if required) by following the instructions in Custom Attributes.
- Add the
Attribute System Component
to the Gameobject that needs attributes, and add the attributes to theAttributes
field in the Inspector. - Create custom
Attribute Events
and assign them to theAttribute System Events
field in the Inspector for theAttribute System Component
.
- Add the
Ability System Character
component to the Gameobject that represents the character with abilities (usually the same Gameobject that has theAttribute System Component
. - Assign the reference to the
Attribute System Component
in the Inspector.