Reply To: Multiple FlowScript References

FlowCanvas Forums Support Multiple FlowScript References Reply To: Multiple FlowScript References

#2832
Gavalakis
Keymaster

Hello,

An enabled flowscript does not really consume any resources unless it is actually doing something. So if that is the reason you want them disabled then there is no need to really. If on the other hand you really want to disable some of them, you can use GetComponents<FlowScriptController>() to get them all and then iterate the result array to selectively disable/enable some or all of them. You could do the selection based on the name of the graph (flowScriptController.graph), but thinking of this it might actually be a good idea for me to add an identifier name in FlowScriptController for such reasons. 🙂

Let me know what you think.
Thanks!

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