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 197
Setting up your project
Sahil Jain edited this page Apr 19, 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-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
.
- 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. - Add the
Attribute System Component
to the Gameobject that needs attributes, and add the attributes to theAttributes
field in the Inspector. - Create custom Attribute types by following the instructions in Custom Attributes.
- 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.