Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/General question - pure()Forum ↗

General question - pure()

App Development2 posts364 views1 likesLast activity Nov 2021
YU
yuvalapelOP
Nov 2021

Can someone explain what is pure() do?
What is the difference between return() and pure()?
tnx

CO
cocreature
Nov 2021

There is no difference between return and pure, see What is the diff between pure() and return() ?Could you give me an example? - #4 by cocreature.

Both allow you to “lift” a value into an Action context most commonly into Update so a -> Update a.

← Back to Discussions