UToolStackContext::RegisterToolStack

Registers and maps the provided UI command to actions that start / stop multiple tools within a tool stack Later on this UI command can be referenced to add the tool stack to a toolbar.

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 RegisterToolStack
(
    [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FUICommandInfo](API\Runtime\Slate\Framework\Commands\FUICommandInfo) > UICommand,
    const [FString](API\Runtime\Core\Containers\FString) & ToolStackIdentifier,
    EToolsContextScope ToolScope
)

Remarks

Registers and maps the provided UI command to actions that start / stop multiple tools within a tool stack Later on this UI command can be referenced to add the tool stack to a toolbar.

Parameters

Name Description
UICommand Command to map tool stack to, should not have any chords due to child tools having hotkeys
ToolStackIdentifier Unique string identifier for the tool stack
ToolScope Scope to determine appropriate tool context for stack

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library