Coming from Unreal Engine 4/5 , I made a simple Gameplay Ability System (GAS) on Unity
Features
Gameplay ability/Gameplay Data
Gameplay Ability are Scritpable Object , like in Unreal Engine it's usa Tag System to owned when active, cancel and blocks other abilities, and can be block or required if Gameplay Ability need some condition to be enable.
Gameplay ability can also send and receive gameplay event..The system is for now very simple but it's jsut to implement a simple send gameplay event
Gameplay Data can be use to send some data on Gameplay Ability, it give possibility to customise data for different actors
Gameplay Ability System
GAS a are monobehaviour script attach to actor. it's main role is to launch gameplay ability
User fill a structure to bind Abilities Tag to Abilities, it's can also send Data
Binding Input to Ability
I'am using Input Asset script I add a structure to bind each input to an ability
Input Binding Ability match input with an ability
All the source file are on this link : https://github.com/NicolasBunn/GAS-in-Unity-.git
Aucun commentaire:
Enregistrer un commentaire