Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Description
Searches for the first entry of the specified type, will only work with TArray
| Name | FindItemByClass |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<typename SearchType>
bool FindItemByClass
(
SearchType ** Item,
SizeType * ItemIndex,
SizeType StartIndex
) const
True if element was found. False otherwise.
Parameters
| Name | Remarks |
|---|---|
| Item | (Optional output) If it's not null, then it will point to the found element. Untouched if element hasn't been found. |
| ItemIndex | (Optional output) If it's not null, then it will be set to the position of found element in the array. Untouched if element hasn't been found. |
| StartIndex | (Optional) Index in array at which the function should start to look for element. |