FGameplayTag FireTag = FGameplayTag::RequestGameplayTag(FName("InputTag.FireTag"));
if (const UInputAction* IA = InputConfig->FindAbilityInputActionForTag(FireTag))
{
// LyraIC->BindAction(IA, ETriggerEvent::Triggered, this, &ThisClass::OnFireAbility);
ASC->BindAbilityActivationToInputComponent(LyraIC, FGameplayAbilityInputBinds(
FString("ConfirmTarget"),
FString("CancelTarget"),
FString("EGameplayAbilityInputID"),
static_cast<int32>(FireTag)
));
}
Does anyone know how to cast a GameplayAbilityInput Tag to an int32. This function FGameplayAbilityInputBinds requires the tag to be an int32.