FSlateWindowHelper::FindWindowByPlatformWindow

Searches the given collection of windows to find the Slate window that corresponds to the specified platform window.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateWindowHelper.h

Include

#include "Application/SlateWindowHelper.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Application/SlateWindowHelper.cpp

Syntax

static TSharedPtr< SWindow > FindWindowByPlatformWindow
(
    const TArray< TSharedRef< SWindow >> & WindowsToSearch,
    const TSharedRef< FGenericWindow > & PlatformWindow
)

Remarks

Searches the given collection of windows to find the Slate window that corresponds to the specified platform window.

Returns

The corresponding Slate window, or nullptr if it was not found.

Parameters

Parameter

Description

WindowsToSearch

The collection of windows to search.

PlatformWindow

The platform window to find the Slate window for.