Hmm. The way Behaviour SubTrees work now, this is not possible to do and would require some changes in the code more than just the Filter decorator itself, since for the Filter decorator code, there is no difference whether it lives in a root or sub tree. All SubTree nodes, are basically treated as being part of their parent tree. As such, the OnGraphStarted callback in nodes for example, is only called when the root tree starts.
With a few changes though, I think I can make it so that it only gets called when the actual graph of the node is started, and if that does not creates any other sort of problems, I could make the change permanent and included in the next version. If so, then the Filter decorator (as well as all other), will automatically work only in relation to their graph. I will have to check this possibility.
I really think though, that the Animator.GetFloat/Bool/Int etc methods with an ID are quite fast. Do you observe any performance hit in the profiler?
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.