vault backup: 2024-01-29 15:46:03
This commit is contained in:
parent
9691c61e10
commit
e42bb1289a
@ -108,4 +108,16 @@ void UGSAbilitySystemComponent::AbilityLocalInputPressed(int32 InputID)
|
|||||||
```
|
```
|
||||||
|
|
||||||
# SDHGame
|
# SDHGame
|
||||||
李兄是在状态机每个节点的StateBegin()中调用CreateDynamicSkillInputActionMappingContext()进行动态绑定的。
|
李兄是在状态机每个节点的StateBegin()中调用CreateDynamicSkillInputActionMappingContext()进行动态绑定的。FSDHSkillInputActionBinding里包含FEnhancedActionKeyMapping相关数据。
|
||||||
|
```c++
|
||||||
|
void USDHSMStateIns::OutputActionKeyMapping(TArray<FEnhancedActionKeyMapping>& OutBindings, const TArray<FSDHSkillInputActionBinding>& InputSkillBinding)
|
||||||
|
{
|
||||||
|
for (int32 i = 0; i < InputSkillBinding.Num(); i++)
|
||||||
|
{
|
||||||
|
FEnhancedActionKeyMapping NewMapping;
|
||||||
|
NewMapping.Key = InputSkillBinding[i].Key;
|
||||||
|
NewMapping.Action = InputSkillBinding[i].Action;
|
||||||
|
OutBindings.Add(MoveTemp(NewMapping));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user