UToolStackContext::AddToolToStack

Registers and maps the provided UI command to actions that control a tool within a tool stack

Unreal Engine C++ API Reference > Editor > EditorInteractiveToolsFramework > ToolContexts > UToolStackContext

References

   
Module EditorInteractiveToolsFramework
Header /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/ToolContexts/ToolStackContext.h
Include #include "ToolContexts/ToolStackContext.h"
Source /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Private/ToolContexts/ToolStackContext.cpp
virtual void AddToolToStack
(
    [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FUICommandInfo](API\Runtime\Slate\Framework\Commands\FUICommandInfo) > UICommand,
    const [FString](API\Runtime\Core\Containers\FString) & ToolStackIdentifier,
    const [FString](API\Runtime\Core\Containers\FString) & ToolIdentifier,
    [UInteractiveToolBuilder](API\Runtime\InteractiveToolsFramework\UInteractiveToolBuilder) * Builder,
    EToolsContextScope ToolScope
)

Remarks

Registers and maps the provided UI command to actions that control a tool within a tool stack

Parameters

Name Description
UICommand Command containing info such as icon, text, & chord for the tool
ToolStackIdentifier Unique string identifier for the tool stack to add this tool to
ToolIdentifier Unique string identifier for the tool, used to check if tool is active
Builder Builder for tool to be used by actions
ToolScope Scope to determine lifetime of tool (Editor, Mode, etc)

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library