Reply To: Possible To Execute A Script From Non-Monobehavior?

NodeCanvas Forums Support Possible To Execute A Script From Non-Monobehavior? Reply To: Possible To Execute A Script From Non-Monobehavior?

#13519
Gavalakis
Keymaster

Hey,

Unfortunately right now, the ExecuteFunction only works with UnityEngine.Object instances (or no instance for static of course). This is because ActionTasks themselves which ExecuteFunction derives from, only work with UnityEngine.Object instances as well. The fact that Tasks work with UnityEngine.Object instead of say System.Object, was a critical decision that was made back when the framework was developed and it is not something that can easily be changed due to serialization right now.
There can of course be workarounds this that I could investigate into, but just to clarify:
Do you mean ExecuteFunction to work with instances stored in blackboard variables more specifically?

Let me know.
Thanks 🙂

Join us on Discord: https://discord.gg/97q2Rjh