# I don't find 'for loop' for array

**URL:** <https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970>\
**Category:** Editor Scripting\
**Tags:** arrays, unreal-engine, UE4-26, question, Blueprint\
**Created:** [January 29, 2021, 4:03pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970 "2021-01-29T16:03:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_76bc96c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76bc96c6](https://forums.unrealengine.com/u/anonymous_user_76bc96c6)\
**Post date:** [January 29, 2021, 4:03pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/1 "2021-01-29T16:03:57Z")

</div>

Hello,

I’m not able to find the nodes ‘ **foreach loop** ’ even if I disable the context sensitive. It seems that all the loop nodes concerning **arrays** are not available in my version of Unreal Engine ( **4.26** ).

Is there a parameter to modify or my version of the engine has a problem?

Thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 29, 2021, 4:12pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/2 "2021-01-29T16:12:40Z")

</div>

![328391-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/0/ac0141e173920bf7d6f7ab75d787d217ee96c2e3.jpeg)

So what happens if you do this in the level blueprint?

You can also hold the F button and click in the graph - it’s a shortcut.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_76bc96c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76bc96c6](https://forums.unrealengine.com/u/anonymous_user_76bc96c6)\
**Post date:** [January 29, 2021, 4:17pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/3 "2021-01-29T16:17:37Z")

</div>

![328359-forloop.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/2/af21c4c7a5624d045d7fefddfa3ecf15851c883b.png)

I just have ForEach…Niagara and the shortcut with F doesn’t work.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 29, 2021, 4:19pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/4 "2021-01-29T16:19:53Z")

</div>

Which blueprint are you trying this in? Although I can’t really think of anything where a standard macro would _not_ be available. 😑

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_76bc96c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76bc96c6](https://forums.unrealengine.com/u/anonymous_user_76bc96c6)\
**Post date:** [January 29, 2021, 4:22pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/5 "2021-01-29T16:22:03Z")

</div>

I try in a widget blueprint

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_76bc96c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76bc96c6](https://forums.unrealengine.com/u/anonymous_user_76bc96c6)\
**Post date:** [January 29, 2021, 4:26pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/6 "2021-01-29T16:26:02Z")

</div>

I tried in another widget blueprint and that works. I think there is a problem with my first widget blueprint. I will recreate a WB because I don’t understand where is the problem finally. Thank you for your help.

---

<div class="post-metadata">

**Author:** ![mikeyj21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mikeyj21](https://forums.unrealengine.com/u/mikeyj21)\
**Post date:** [May 12, 2021, 11:58am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/7 "2021-05-12T11:58:20Z")

</div>

If anyone else finds this (lonely and solitary!) reference to the problem of missing FOR nodes in a Widget BP in 4.26, I have a ‘fix’ for you…

BTW, I tried using a fresh Widget BP as suggested above, but that didn’t solve the problem; neither did restarting the engine.

All I did to work around the issue was to create a new BP (although I expect it would also work using a _preexisting_ BP) derived from an **Actor** , go into the event graph, and right click into the space; both the For and ForEach loops were available as expected. I then copied and pasted the required node into my Widget BP. From then on, the nodes were appearing in the Actions (i.e. the right click menu) as expected.

I hope this helps someone; it had me tearing out my hair (not that I have much left these days!) until I guessed at this workaround!

–Mike–

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_329121611](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_329121611](https://forums.unrealengine.com/u/anonymous_user_329121611)\
**Post date:** [October 21, 2021, 3:34pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/8 "2021-10-21T15:34:34Z")

</div>

This works, had this issue in UE5-main branch as well =]

---

<div class="post-metadata">

**Author:** ![ziocleto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ziocleto](https://forums.unrealengine.com/u/ziocleto)\
**Post date:** [March 17, 2022, 12:39pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/9 "2022-03-17T12:39:58Z")

</div>

Still an issue on UE5 Preview 2, bizarre and annoying…

---

<div class="post-metadata">

**Author:** ![night\_on\_mars](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/night_on_mars/32/469464_2.png) [@night\_on\_mars](https://forums.unrealengine.com/u/night_on_mars)\
**Post date:** [May 1, 2022, 9:22am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/10 "2022-05-01T09:22:18Z")

</div>

Just to add that this issue still exists in UE5.0.1 but copying and pasting the “for” loop object from another blueprint works.

---

<div class="post-metadata">

**Author:** ![Clifford\_Sage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clifford_sage/32/498909_2.png) [@Clifford\_Sage](https://forums.unrealengine.com/u/Clifford_Sage)\
**Post date:** [May 26, 2022, 1:14am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/11 "2022-05-26T01:14:29Z")

</div>

Yup adding this also, not showing up in widget bp, madness! We can’t be the only ones having this issue lol?

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [May 26, 2022, 8:31am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/12 "2022-05-26T08:31:16Z")

</div>

This issue has been reported, reproduced by staff and is being tracked in our ticketing system.

Apparently the for loop in widget BP comes back if you create an actor BP and looking for a for loop in that BP and then go back to your widget blueprint…

---

<div class="post-metadata">

**Author:** ![samrrr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samrrr](https://forums.unrealengine.com/u/samrrr)\
**Post date:** [June 7, 2022, 2:20am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/13 "2022-06-07T02:20:24Z")

</div>

This bug still exist in UE5.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/a/8da764e1fd34528426739d70052b742005c43561.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 29, 2022, 10:48am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/14 "2022-06-29T10:48:54Z")

</div>

WTF!? just happened to me in UE5…

---

<div class="post-metadata">

**Author:** ![unrulyguide](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@unrulyguide](https://forums.unrealengine.com/u/unrulyguide)\
**Post date:** [June 30, 2022, 3:11am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/15 "2022-06-30T03:11:44Z")

</div>

Yeah I can confirm this is still a bug; this just happened to me too. Copying the For Each from another blueprint is a workaround though.

---

<div class="post-metadata">

**Author:** ![cb4hcf8c31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cb4hcf8c31](https://forums.unrealengine.com/u/cb4hcf8c31)\
**Post date:** [July 2, 2022, 1:10pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/16 "2022-07-02T13:10:12Z")

</div>

Same problem over here. Unable to for each loop on array. Its hard to believe they did not fix such an important logic like that for that much long time. Come on Epic Games?!

---

<div class="post-metadata">

**Author:** ![shachash1984](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shachash1984](https://forums.unrealengine.com/u/shachash1984)\
**Post date:** [September 20, 2022, 8:03pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/17 "2022-09-20T20:03:42Z")

</div>

It Works… Epic needs to take care of this bug…

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [September 21, 2022, 12:19pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/18 "2022-09-21T12:19:07Z")

</div>

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-149464)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-155372)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [October 20, 2022, 9:24am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/19 "2022-10-20T09:24:46Z")

</div>

Sigh I just got this bug.

Fustrating, No amount of creating new bps can I access it.

Anyone got any new fixes?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5d353805](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5d353805](https://forums.unrealengine.com/u/anonymous_user_5d353805)\
**Post date:** [October 27, 2022, 8:16am UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970/20 "2022-10-27T08:16:16Z")

</div>

I just fixed this! I tried at level blueprint not in widget blueprint. once you get ‘for loop’ for your level BP, and then you can find it in widgetBP as well.

[Next page](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970.md?page=2)
