reznok / GMCAbilitySystem

An Unreal Engine plugin that adds an ability system to the General Movement Component plugin
MIT License
28 stars 13 forks source link

Add an AnimInstance subclass with Gameplay Tag Bindings #22

Closed LeoFabre closed 4 months ago

LeoFabre commented 4 months ago

Lyra has a custom anim instance class that has a Gameplay Tag Binding map (docs) (Lyra Anim Instance source), which enables the ABP to thread-safely update bool fields to match the presence/absence of mapped GameplayTags on the owning pawn's ASC.

Again, I will need this in my game, and I'll contribute this when I'm done making it (no ETA at all)

Cheers !

Packetdancer commented 4 months ago

I already did something akin to this -- but more focused -- in my own project.

That said, I think the better way to do this would be to literally just create an equivalent to GAS's tag bindings, as having a way to have properties set automatically (and in a thread-safe way) based on tags could potentially be useful even outside of animation blueprints.

(Plus, it's about the same amount of work either way, and one way is useful globally as opposed to just in animation blueprints.)

LeoFabre commented 4 months ago

Totally agree !

Packetdancer commented 4 months ago

There's now a pull request against the dev branch which contains the requested feature. :)