SFindInMaterial

Widget for searching for items that are part of a [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/FindInMaterial.h

Include

#include "FindInMaterial.h"

Syntax

class SFindInMaterial : public SCompoundWidget

Remarks

Widget for searching for items that are part of a UEdGraph

Variables

Name Description

Protected variable

FText

 

HighlightText

The string to highlight in the results

Protected variable

TArray< FSearch...

 

ItemsFound

This buffer stores the currently displayed results

Protected variable

TWeakPtr< class...

 

MaterialEditorPtr

Pointer back to the Material editor that owns us

Protected variable

FSearchResult

 

RootSearchResult

We need to keep a handle on the root result, because it won't show up in the tree

Protected variable

TSharedPtr< cla...

 

SearchTextField

The search text box

Protected variable

FString

 

SearchValue

The string to search for

Protected variable

TSharedPtr< STr...

 

TreeView

The tree view displays the results

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs,
    TSharedPtr< class FMaterialEditor >...
)

Public function

void

 

FocusForUse()

Focuses this widget's search box

Protected function

void

 

InitiateSearch()

Begins the search based on the SearchValue

Protected function

void

 

MatchTokens

(
    const TArray< FString >& Tokens
)

Find any results that contain all of the tokens

Protected function

TSharedRef< ...

 

OnGenerateRow

(
    FSearchResult InItem,
    const TSharedRef< STableViewBase > ...
)

Called when a new row is being generated

Protected function

void

 

OnGetChildren

(
    FSearchResult InItem,
    TArray< FSearchResult >& OutChildr...
)

Get the children of a row

Protected function

void

 

OnSearchTextChanged

(
    const FText& Text
)

Called when user changes the text they are searching for

Protected function

void

 

OnSearchTextCommitted

(
    const FText& Text,
    ETextCommit::Type CommitType
)

Called when user changes commits text to the search box

Protected function

void

 

OnTreeSelectionChanged

(
    FSearchResult Item,
    ESelectInfo::Type SelectInfo
)

Called when user clicks on a new result

Protected function Static

bool

 

StringMatchesSearchTokens

(
    const TArray< FString >& Tokens,
    const FString& ComparisonString
)

Determines if a string matches the search tokens

Classes

Name

Description

Public struct

FArguments

Typedefs

Name

Description

FSearchResult

STreeViewType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss