TArray::AddUnique

Adds unique element to array if it doesn't exist.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

SizeType AddUnique
(
    const ElementType & Item
)

Remarks

Adds unique element to array if it doesn't exist.

Returns

Index of the element in the array.

Parameters

Parameter

Description

Args

Item to add.

See Also