Daily Unreal Column #33 - Filter function parameter gameplay tags
Following up on yesterday's post about filtering gameplay tags when declared as UPROPERTY, here is how to filter them when they are used as function parameters.
There are two ways of filtering gameplay tags when used as blueprint exposed parameters to a function. First one defines a category for entire function, so if more than one gameplay tag are declared as parameters, the filter will be applied to both of them.
UFUNCTION(BlueprintCallable, meta = (GameplayTagFilter = "MyCategory"))
void Foo(FGameplayTag Bar, FGameplayTag Baz);
The second one allows to specify filter for each parameter individually.
UFUNCTION(BlueprintCallable)
void Foo(
UPARAM(meta = (Category = "MyCategory")) FGameplayTag Bar,
UPARAM(meta = (Category = "OtherCategory")) FGameplayTag Baz);