📁
Notes
  • About
  • Unreal Engine
    • UI
      • Menu & Menu Bar
    • Math
    • Serialize
    • Pipeline
    • 🚀Automation
    • UE Cpp
    • Uncategorized
  • Type Script
    • Setup
  • Tool
    • V2Ray on Ubuntu
Powered by GitBook
On this page
  • Slate Core
  • Tab
  • Tab Layout
  • Dialog
  • FMessageDialog
  • SCustomDialog
  1. Unreal Engine

UI

Slate Core

FGeometry

FGeometry = (LocalPosition + LocalSize + AbsolutePosition + AbsoluteScale) + AccumulatedRenderTransform = (LocalPosition + LocalSize) + AccumulatedLayoutTransform + AccumulatedRenderTransform

Tab

Tab Layout

Create Layout

TabLayout = FTabManager::NewLayout( "Standalone_YourEditor_Layout_v1" )
->AddArea
(
   FTabManager::NewPrimaryArea()->SetOrientation(Orient_Vertical)
   ->Split
   (
      FTabManager::NewStack()
      ->SetSizeCoefficient(0.1f)
      ->AddTab(InHostingApp->GetToolbarTabId(), ETabState::OpenedTab)
      ->SetHideTabWell(true) 
   )
   ->Split
   (
      FTabManager::NewSplitter()->SetOrientation(Orient_Horizontal)
      ->Split
      (
         FTabManager::NewStack()
         ->SetSizeCoefficient(0.7f)
         ->AddTab(YourEditorTabs::ViewportTab, ETabState::OpenedTab)
      )
      ->Split
      (
         FTabManager::NewSplitter()->SetOrientation(Orient_Vertical)
         ->SetSizeCoefficient(0.3f)
         ->Split
         (
            FTabManager::NewStack()
            ->AddTab(YourEditorTabs::DetailsTab, ETabState::OpenedTab)
         )

      )
   )
);

Restore Layout

FLayoutSaveRestore::LoadFromConfig(GEditorLayoutIni, TabLayout);

Dialog

FMessageDialog

  • Easy to use dialog

SCustomDialog

  • Allow set custom content and buttons

PreviousUnreal EngineNextMenu & Menu Bar

Last updated 11 months ago