Navigation
API > API/Plugins > API/Plugins/ConcertSharedSlate > API/Plugins/ConcertSharedSlate/Model > API/Plugins/ConcertSharedSlate/Model/Item
References
| Module | ConcertSharedSlate |
| Header | /Engine/Plugins/Developer/Concert/ConcertUI/ConcertSharedSlate/Source/ConcertSharedSlate/Public/Model/Item/SourceSelectionCategory.h |
| Include | #include "Model/Item/SourceSelectionCategory.h" |
Syntax
template<typename TSelectionType>
struct TSourceSelectionCategory
Remarks
A category groups IItemSourceModel together, e.g. a category "Add actor" could have options like
- selected in outliner
- drop-down list of actors in the world
Usually a category is displayed by a combo button with DisplayInfo being applied to it. However, if Options.Num() == 1, then for better UX the button can be "inlined" with a widget visualizing that option, e.g. a button that just invokes the single option and its IObjectSourceModel::GetDisplayInfo is applied to the button.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBaseDisplayInfo | DisplayInfo | Data to display about this category. | |
| TArray< TAttribute< TSharedPtr< IItemSourceModel< TSelectionType > > > > | Options | The options of this category. | |
| TArray< TSourceSelectionCategory > | SubCategories | Sub-categories to show in the context menu. |