RealDocs

23 results for "array"

class
TArray Core

The primary dynamic array container in Unreal Engine, equivalent to `std::vector`.

function
TArray::Add Core

Appends an element to the end of the array and returns its index.

function
TArray::AddUnique Core

Adds an element only if it is not already present in the array.

function
TArray::Contains Core

Returns true if the array contains at least one element equal to Item.

function
TArray::ContainsByPredicate Core

Returns true if any element satisfies the predicate.

function
TArray::Emplace Core

Constructs a new element in-place at the end of the array using the provided constructor arguments.

function
TArray::Find Core

Searches for Item using operator== and returns true if found, setting Index to its position.

function
TArray::FindByPredicate Core

Returns a pointer to the first element for which Pred returns true, or nullptr if none match.

function
TArray::IsEmpty Core

Returns true if the array contains no elements.

function
TArray::Num Core

Returns the number of elements currently in the array.

function
TArray::Remove Core

Removes all elements equal to Item and returns the number of elements removed.

function
TArray::RemoveAll Core

Removes all elements for which the predicate returns true, preserving order of remaining elements.

function
TArray::Reserve Core

Pre-allocates memory for at least Number elements without changing the logical size.

function
TArray::Reset Core

Removes all elements (calls destructors) but retains allocated memory for reuse.

function
TArray::Sort Core

Sorts the array in-place using an introspective sort (introsort).

function
TArray::StableSort Core

Sorts the array in-place and guarantees that equal elements retain their original relative order.

class
AGameStateBase Engine

Replicated actor that holds authoritative game state visible to all clients — the client-accessible counterpart to `AGameModeBase`.

class
FString Core

Unreal Engine's general-purpose heap-allocated string class.

function
AActor::GetComponentsByClass Engine

Returns all components of the given class attached to this actor.

function
AActor::GetOverlappingActors Engine

Populates an array with all actors currently overlapping any component of this actor.

function
AActor::GetOverlappingComponents Engine

Populates an output array with all UPrimitiveComponents from other actors that are currently overlapping any component of this actor.

struct
TSet Core

An unordered container of unique elements backed by a hash set.

class
UComboBoxString UMG

A dropdown widget that displays a list of string options for the user to select one.