TArray::Last

Returns n-th last element from the array.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

ElementType & Last
(
    SizeType IndexFromTheEnd
)

Remarks

Returns n-th last element from the array.

Returns

Reference to n-th last element from the array.

Parameters

Parameter

Description

IndexFromTheEnd

(Optional) Index from the end of array (default = 0).

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