UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Slate::Containers::TObservableArrayChangedArgs< InElementType > Struct Template Reference

#include <ObservableArray.h>

Classes

struct  FRemoveSwapIndex
 
struct  FSwapIndex
 

Public Member Functions

EObservableArrayChangedAction GetAction () const
 
SizeType GetActionIndex () const
 
FRemoveSwapIndex GetRemovedSwapIndexes () const
 
FSwapIndex GetSwapIndex () const
 
ArrayViewType GetItems () const
 

Member Function Documentation

◆ GetAction()

Returns
The action that caused the event.

◆ GetActionIndex()

template<typename InElementType >
SizeType UE::Slate::Containers::TObservableArrayChangedArgs< InElementType >::GetActionIndex ( ) const
inline

Valid for the Add, Remove, RemoveSwap action. Use GetItems.Num() to know how many elements were added/removed. Add: The array index where we added the elements. Remove: The old array index before it removed the elements. The index is not valid anymore. RemoveSwap: The old array index before it removed the elements. The index is valid if the array is not empty.

Returns
The index the action started.

◆ GetItems()

Returns
The items added to the array or removed from the array. Valid for the Add, Remove and RemoveSwap action.

◆ GetRemovedSwapIndexes()

Valid for the RemoveSwap action.

Returns
The index of the removed elements and the index of the moved elements.

◆ GetSwapIndex()

Valid for the Swap action.

Returns
The indexes of the 2 swapped elements.

The documentation for this struct was generated from the following file: