UGameViewportClient::RemoveViewportWidgetForPlayer

Removes a previously-added widget from the Slate viewport, in the player's section.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

virtual void RemoveViewportWidgetForPlayer
(
    ULocalPlayer * Player,
    TSharedRef< SWidget > ViewportContent
)

Remarks

Removes a previously-added widget from the Slate viewport, in the player's section.

Parameters

Parameter

Description

Player

The player to remove the widget's viewport from.

ViewportContent

The widget to remove. Must be valid.