IToolkitHost::AddViewportOverlayWidget

Allows Toolkits to push widgets to the viewport.

Unreal Engine C++ API Reference > Editor > EditorFramework > Toolkits > IToolkitHost

References

   
Module EditorFramework
Header /Engine/Source/Editor/EditorFramework/Public/Toolkits/IToolkitHost.h
Include #include "Toolkits/IToolkitHost.h"
virtual void AddViewportOverlayWidget
(
    [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [SWidget](API\Runtime\SlateCore\Widgets\SWidget) > InOverlaidWidget,
    [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [IAssetViewport](API\Editor\UnrealEd\IAssetViewport) > InViewport
)

Remarks

Allows Toolkits to push widgets to the viewport. Passing a nullptr for the Viewport will add or remove the OverlayWidget to or from the ActiveViewport


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library