1) Yes, the purpose of Cache node is to cache some data. The cache takes place when the Flow Input is called. Then whenever you want to use the cached data, you simply use the “Value” output of the same node.
2) FlowCanvas creates delegates out of reflection and as such there is no reflection calls in actual runtime after initialization, but rather only a simple delegate call which is very close if not the same to the speed of calling a method directly. If you want to see what it’s done behind the scenes, please take a look at ReflectedMethodNode.cs file. This applies to all non AOT platforms.
3) Once again here, Blackboard Variables are bound (delegates created) so in practice the string name of the variables no longer matter in runtime after initialization. You can check out what happens in BBParameter.cs at line #305 if you want so 🙂
Similar optimizations can be found throughout the whole tool as well 🙂
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.