Amount of elements in a TArray

Hi, just a quick question. I cant seem to find any way to get the number of elements that exist in a TArray, is there a built in function that i’m missing or something?

Hey, it’s TArray::Num()

Alright thanks!


1 Like

I was looking for this as well. The API pages are lacking

I think this could have a better name, size and length are what most of us would probably look for first.

+1. Just ended up here after looking for Size, Length and Count in the reference page.

i really don’t understand why is it so hard to just use more conventional words like size/length

1 Like