Unreal Pure Functions — Your tricky friend

What Unreal’s documentation tells you and doesn’t tell you

In a Blueprint, you can check the Pure checkbox of a function to make the function pure:

A pure function that changes things
“it’s working we got errors!”

Don’t be fooled by pure functions!

(Now I’m going to share some mistakes I made around pure functions :D)

Two Digits:75  Ten:5  One:8
Two Digits:72  Ten:7  One:2
Two Digits:93 Ten:9 One:3

The Take Away

As I’ve been fooled by pure functions a couple of times, now whenever I hook the output pin of a pure function to more than one execution nodes, I’ll think twice or even duplicate the pure function rather than hooking up the output pins to multiple execution nodes.

--

--

I’m a game dev. I write code (but not a coder), make art (could be an artist), but mostly interested in designing games.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Xu He

Xu He

I’m a game dev. I write code (but not a coder), make art (could be an artist), but mostly interested in designing games.