1.manually search ,Yes
AARPGCastAction* Action = nullptr;
for (AARPGCastAction* e : CharacterCombatComponent->GetAbilityActions())
{
if (e && e->GetItemName() == ActionName)
{
Action = e;
break;
}
}
//2.Rank,Yes
AARPGCastAction* Action_Rank = CharacterCombatComponent->GetAbilityActions()[0];
//3.FindRef,Yes
AARPGAction* Action_FromMap = CharacterCombatComponent->AbilityActionsMap.FindRef(ActionName);
//4.FindByPredicate,No
AARPGCastAction** ActionPtr = CharacterCombatComponent->GetAbilityActions().FindByPredicate(
[this,ActionName](AARPGCastAction* Action)
{
/*return Action ? Action->GetItemName() == ActionName : false;*/
return true;
});
AARPGAction* Action_Dereference = (*ActionPtr);