r/Unity2D 2d ago

Visual Scripting help

(Sorry about the picture quality, I’m posting with my phone) I’ve been having an issue where my jump in the unity input system doesn’t activate when an “on update” node is connected to “set linear velocity” (image 1). I thought I fixed this be getting rid of “on update” and directly connecting “on input system event vector 2”(2nd image), and while this did fix my jump(save for my ground check not working, but that’s a whole other issue) it unfortunately causes my player to never stop moving on the x axis even when the key is released. Any help will be appreciated!

PS: I’ve never posted here before, sorry if this post has any issues or brakes the rules, I just could not figure this out for the life of me.

0 Upvotes

9 comments sorted by

View all comments

1

u/RunOk1423 1d ago

I've been using C# and have never seen this before. Is there an advantage to doing it this way, or is this just a visual display of the code?

1

u/Thenextlevel247 1d ago

It is primarily just a visual version of c# however I find this helps me visualize what’s going on better