Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/USingleKeyCaptureBehavior
Description
Initialize this behavior with the given Target. Note that though it interacts through the IModifierToggleBehaviorTarget interface, the modifier here captures keyboard input, unlike the modifiers in UKeyAsMOdifierInputBehavior and other places.
| Name | Initialize |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/SingleKeyCaptureBehavior.h |
| Include Path | #include "BaseBehaviors/SingleKeyCaptureBehavior.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseBehaviors/SingleKeyCaptureBehavior.cpp |
virtual void Initialize
(
IModifierToggleBehaviorTarget * Target,
int ModifierID,
const FKey & ModifierKey
)
Parameters
| Name | Remarks |
|---|---|
| Target | implementor of IModifierToggleBehaviorTarget |
| ModifierID | integer ID that identifiers the modifier toggle |
| ModifierKey | the key that will be used as the modifier toggle |