TArray::Remove

Removes as many instances of Item as there are in the array, maintaining order but not indices.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Array.h

Include

#include "Containers/Array.h"

Syntax

SizeType Remove
(
    const ElementType & Item
)

Remarks

Removes as many instances of Item as there are in the array, maintaining order but not indices.

Returns

Number of removed elements.

Parameters

Parameter

Description

Item

Item to remove from array.

See Also

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