blueprint

better for-loop

  • Exposure: public
  • UE Version: 4.16

gray_fox

July 6, 2017, 12:46 pm

I originally posted this to the Unreal subreddit. OP is here.

You'll find everything you need to know about it there. If you have any questions/problems with it, leave a comment in the reddit post or PM me through reddit (I don't get messages through this website).

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

4 comments

  • gray_fox

    Thursday 6, 2017

    I originally posted this to the unreal subreddit here https://www.reddit.com/r/unrealengine/comments/6ljsw4/so_i_got_tired_of_ue4s_restrictive_for_loops_and/ If this doesn't work for you, leave a comment in the reddit post, and I'll see if I can figure out what's wrong with it. Also, this node depends on an enum variable called "inequality" that contains the entries: <

    >= I don't know if the code pasted above will work without you making that variable, so try that if it gives you problems.

  • Derjyn

    Saturday 3, 2018

    Copy/pasting this really isn't working at all. A little more explanation on the input variables is needed. I like the idea of a "better" for-loop ;)

  • Derjyn

    Saturday 3, 2018

    Also, we aren't able to add more than one exec pin... At least in Blueprint function libraries. Not being able to utilize this via BPFLs makes this sort of... More of a pain than it's worth.

  • Derjyn

    Saturday 3, 2018

    My bad- I was able to make a macro. Totally forgot macros have the exec pins, not functions. I guess the most "graceful" way to make this easily accessible, is to have a blueprint for snippets... Throw this macro in there for storage. Ideally, this could be made into a plugin. Which I believe has been done by a few others ;)