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
Login
Register
By registering on this website you agree to our Privacy Policy.