SSearchableComboBox::SetSelectedItem

Sets the selected item.

Unreal Engine C++ API Reference > Developer > ToolWidgets > SSearchableComboBox

References

   
Module ToolWidgets
Header /Engine/Source/Developer/ToolWidgets/Public/SSearchableComboBox.h
Include #include "SSearchableComboBox.h"
Source /Engine/Source/Developer/ToolWidgets/Private/SSearchableComboBox.cpp
void SetSelectedItem
(
    [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FString](API\Runtime\Core\Containers\FString) > InSelectedItem,
    [ESelectInfo::Type](API\Runtime\SlateCore\Types\ESelectInfo__Type) InSelectInfo
)

Remarks

Sets the selected item. By default, registers as a navigation request, which does not set the cached selected item, only updating the visually selected item.

Parameters

Name Description
InSelectedItem Item to select
InSelectInfo (optional) How the selected item is being committed (default: OnNavigation)

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library