Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/FToolGroupFeatureRegistry
Description
Acquire the feature. If this is the first acquire for Key (0 -> 1), Install will be executed and the provided Install/Uninstall callbacks will be stored as the feature definition for this context.
If the feature is already acquired (RefCount > 0), the stored Install/Uninstall callbacks are retained. Callers may pass callbacks again (eg from immutable ToolGroup descriptors); these callbacks are ignored and only the ref-count is incremented.
Note: Feature keys are expected to uniquely identify feature behavior within a context. If multiple callers provide different implementations for the same key, behavior is defined by the first acquire.
| Name | Acquire |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/ToolGroupManager.h |
| Include Path | #include "ToolGroupManager.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/ToolGroupManager.cpp |
void Acquire
(
FToolGroupFeatureKey Key,
UInteractiveToolsContext & Context,
TFunction < void &)> Install,
TFunction < void &)> Uninstall
)