Download

Latent blueprint nodes - caching proxy object

Say I have blueprint node which implements Latent gameplay task.
Now to create latent tasks, you need to have static function, which will create new proxy object for latent node.

Is there any good way, to create certain proxy object only once per execution per latent node ?
Sometimes I don’t want to create new proxy object when node is executed, and I would be better off, simply reusing old proxy and eventually reassigning properties to it.

One thing I could think of, was to simply cache off objects inside array of object which is using latent tasks. But that would essentialy allow me to cache single unique object per parent object (as I could only check if it exist by class name, as I don’t think there is access to information, which exact node on graph created proxy).