unreal.Array
¶
- class unreal.Array(*args, **kwargs)¶
Bases:
unreal._WrapperBase
Type for all UE4 exposed array instances
- __copy__() → Array – copy this Unreal array¶
- append(value) -> None -- append the given value to the end of this Unreal array (equivalent to TArray::Add in C++)¶
- classmethod cast(type, obj) → Array – cast the given object to this Unreal array type¶
- copy() → Array – copy this Unreal array¶
- count(value) → integer – return the number of times that value appears in this this Unreal array¶
- extend(iterable) -> None -- extend this Unreal array by appending elements from the given iterable (equivalent to TArray::Append in C++)¶
- index(value, start=0, stop=len) -> integer -- get the index of the first matching value in this Unreal array, or raise ValueError if missing (equivalent to TArray::IndexOfByKey in C++)¶
- insert(index, value) → None – insert the given value at the given index in this Unreal array¶
- pop(index=len - 1) → value – remove and return the value at the given index in this Unreal array, or raise IndexError if the index is out-of-bounds¶
- remove(value) → None – remove the first matching value in this Unreal array, or raise ValueError if missing¶
- resize(len) → None – resize this Unreal array to hold the given number of elements¶
- reverse() → None – reverse this Unreal array in-place¶
- sort(key=None, reverse=False) → None – stable sort this Unreal array in-place¶