반응형

주의 점이라고 하긴 했지만 하면 안된다 그런게 아니고 네이밍만 보고선 어? 라는 부분이 생기게 될 수 있는데

[Size to Fit 에 체크를 해놨을 경우]

이 함수는 Add 처럼 Element 를 하나씩 뒤에서 추가하는 것이 아니고

해당 추가할 위치의 인덱스를 지정해주면 0번지 부터 해당 인덱스 번지까지 순차적으로 쭉 생성 한다는 것이 주의할 점이다


빈 TArray 에서 인덱스를 3으로 주면

0~3까지 4개의 공간이 생기게 된다





Set Array Elem



  • SHARE:

Target is Kismet Array Library

Set Array Elem
Target Array
Index
0
Item
Size to Fit

Inputs

In
Exec
Target Array
Array of Wildcards

The array to perform the operation on *

Index
Integer

The index to assign the item to *

Item
Wildcard (by ref)

The item to assign to the index of the array *

Size to Fit
Boolean

If true, the array will expand if Index is greater than the current size of the array

Outputs

Out
Exec


반응형

+ Recent posts