ue4 c++ get array code example
Example 1: tarray ue4 c++
#include "Containers/Array.h"
//Might need this. header file
// Syntax
TArray<Variable_Type> Variable_Name;
// Example code
TArray<AActor> Gun;
// For more information vist https://docs.unrealengine.com/en-US/API/Runtime/Core/Containers/TArray/index.html
Example 2: ue4 array copy c++
// Array copy with UE
TArray<AActor*> SourceArray;
// copy SourceArray to DestArray
TArray<AActor*> DestArray(SourceArray);