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
http://www.lazybeargames.com
So I hope reviving this post will help me out but I can’t seem to search those simple terms and find what I want even when I type Multiply Float or “x” I get nothing am I doing something wrong? When I type Multiply I ONLY get results for vectors and not different variable types.
Hello and sorry for the late reply. To find these, please use the code symbols instead. So for example, for multiple please use the asterisk “*”, or for divide the slash “/”, etc. It is made this way because the mathematical symbols (eg for divide) are difficult to type (most keyboards don’t even have them at all by default).
Let me know if that works for you. Thank you.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.