Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
41 results for Array
ADD: Array Add (Target Array=MyArray, New Item=newElement). READ: Array Get (Target Array=MyArray, Index=i) → use 'Item' output. FIND: Array Contains (returns bool) or Array Find (returns index, -1 if not found). REMOVE by index: Array Remove (Target Array=MyArray, Index=i). REMOVE by value: Array Remove Item (Target Array=MyArray, Item=value). ITERATE: ForEachLoop(Array=MyArray) → 'Array Element' output is the current item. LENGTH: Array Length (returns int). Key: Array nodes operate on the array BY REFERENCE — always connect the array variable directly.
Target Array is the array variable (pass by reference). Returns new array length.
Array_AddUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoWhy: You're feeding an Array<{elem}> into a function that expects Array<{other}>. UE5 doesn't auto-cast array element types element-by-element — you'd lose type safety. Fix: Either: (a) change one array's variable type to match (My Blueprint → variable → Details → Variable Type → set to Array of {other}), or (b) loop over the source array, cast each element individually, and Append to a new typed array. Use the ForEachLoop node for this.
Pure node. Returns 0 for empty arrays.
Array_LengthUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPure node. Does NOT bounds-check — will throw if Index >= array length.
Array_GetUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Struct S_InventoryItem(ItemName:String, Quantity:int, Icon:Texture2D, bStackable:bool). Variable Inventory(Array<S_InventoryItem>). AddItem: ForEachLoop(Inventory) → Branch(Element.ItemName == NewItem.Name AND bStackable) → True: SET Element.Quantity += Amount. If not found: Array_Add(NewItem). RemoveItem: Find index → Branch(Quantity > 1) → True: decrement. False: Array_Remove.
UKismetArrayLibrary::Array_Add. Returns new index.
AddUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoLengthUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoExec outputs: 'Loop Body' and 'Completed'. Data outputs: 'Array Element' and 'Array Index'.
ForEachLoopUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoArray_RemoveUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago