SGraphActionMenu::SelectItemByName

Selects an non-creation item in the list, searching by [FName](API\Runtime\Core\UObject\FName), deselects if name is none

Unreal Engine C++ API Reference > Editor > GraphEditor > SGraphActionMenu

References

   
Module GraphEditor
Header /Engine/Source/Editor/GraphEditor/Public/SGraphActionMenu.h
Include #include "SGraphActionMenu.h"
Source /Engine/Source/Editor/GraphEditor/Private/SGraphActionMenu.cpp
bool SelectItemByName
(
    const [FName](API\Runtime\Core\UObject\FName) & ItemName,
    [ESelectInfo::Type](API\Runtime\SlateCore\Types\ESelectInfo__Type) SelectInfo,
    int32 SectionId,
    bool bIsCategory
)

Remarks

Selects an non-creation item in the list, searching by FName, deselects if name is none TRUE if the item was successfully selected or the tree cleared, FALSE if unsuccessful

Parameters

Name Description
ItemName The name of the item to select
SelectInfo The selection type
SectionId If known, the section Id to restrict the selection to, useful in the case of categories where they can exist multiple times
bIsCategory TRUE if the selection is a category, categories obey different rules and it's hard to re-select properly without this knowledge

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library