Hi, I bought Node+Flow Canvas yesterday and truly was impressed of it!
Now I’m trying to train myself but having some difficulty with very trivial task.
How can I add or multiply two float value in flow script?
It was very intuitive to drag value port to the canvas and bring Node Browser on.
But I couldn’t figure out how to select ‘Add’ or ‘+’ node I saw in sample scene (SpaceInvaders contains them)
Is there any option for Node Browser to reveal more or turn filters off?
I also couldn’t find a node for ‘Rigidbody.velocity’ by just entering ‘velocity’ in Node Browser.
It shows me ‘NavMeshAgent.velocity’ or ‘Rigidbody.angularVelocity’ but not that ‘Rigidbody.velocity’ (like the attachment screenshot).
Of course did scroll whole way down with no luck.
I think the strongest point over other solutions is that FlowCanvas includes full of its source code!
Very happy to skim over code and figured out why ‘velocity’ search does not show Rigidbody’s one and how to fix it:
In CompleteContextMenu.cs #361: Change indexer parameter ‘node.name’ to ‘node.fullPath’.
The ‘velocity’ nodes of Rigidbody were overwritten with another nodes of same name because they have same name.
(Of course I’m not sure if that’s the legitimate solution tho 🙂
Thanks a lot for purchasing NodeCanvas + FlowCanvas, as well as for your positive feedback. I am really glad you like the tools! 🙂
Also thanks a lot for the fix! That was a good find indeed and your solution is totally fine! 🙂
Regarding the +, – etc operators, because the search is only showing results when more than 3 characters are entered in the search field, there is a small problem with these kind of nodes which only have one character :/
You can of course still add such nodes by manually selecting the node in the “Functions/Implemented/Logic Operators” category where they belong.
One solution I am thinking for the next version, to make such nodes correctly show in the search (which is of course important) is to simply rename them to their full name (Add, Subtract, etc) and is probably what I am going to do for the next version.
I’ve got an idea. What about making search algorythm work the following way: when your search query is shorter then 3 characters, you search nodes not by including these chars in the name, but for the exact match. I.e. when you enter “a” in the search query, only nodes with the exact name “a” will be shown.
Developer at Lazy Bear Games