FTabManager::RegisterTabSpawner

Register a new tab spawner with the tab manager.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Docking/TabManager.h

Include

#include "Framework/Docking/TabManager.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Docking/TabManager.cpp

Syntax

FTabSpawnerEntry & RegisterTabSpawner
(
    const FName TabId,
    const FOnSpawnTab & OnSpawnTab,
    const FCanSpawnTab & CanSpawnTab
)

Remarks

Register a new tab spawner with the tab manager. The spawner will be called when anyone calls InvokeTab().

Returns

The registration entry for the spawner.

Parameters

Parameter

Description

TabId

The TabId to register the spawner for.

OnSpawnTab

The callback that will be used to spawn the tab.

CanSpawnTab

The callback that will be used to ask if spawning the tab is allowed

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss