Slate笔记

SWindow添加进主Window下

#include "MainFrame/Public/Interfaces/IMainFrameModule.h"

    IMainFrameModule& MainFrameModule = FModuleManager::LoadModuleChecked(TEXT("MainFrame"));
    if ( MainFrameModule.GetParentWindow().IsValid() )
    {
        FSlateApplication::Get().AddWindowAsNativeChild(ReportWindow, MainFrameModule.GetParentWindow().ToSharedRef());
    }
    else
    {
        FSlateApplication::Get().AddWindow(ReportWindow);
    }

你可能感兴趣的:(Slate笔记)