Unity use right stick to aim in 2D with new input system

  1. I have set up a _move variable that is global so that I can use it in the update method.
  2. I am subscribing to the performed event with +=
  3. the => is not equal to or more than it is a quick way to run code in one line
  4. the => separates the input parameters in this case obj from the lambda body on the right
  5. This means that I am storing the value of the obj inside of the _move variable




Integration support and part-time game developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Magento SaaS Performance

Behind The Fat or The Skinny Programmer

BiSoga, What I Honestly Think

Monitoring Legacy Virtual Machines, and Its Applications — the “Kubernetes Way”

3 Reasons for Personal Branding after 10 years as Software Developer

Desktop Application + Mobile Application + Web Application +IOT with 5 programming languages.

REST API : How we implement resource handlers for PATCH req:

Valid Actions performed on the Invitation Entity

Exporting MP3 Only from Premiere Pro.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Kirwan

Daniel Kirwan

Integration support and part-time game developer

More from Medium

Unity — new input system create an action map

‘Dodge The Spike’-Endless Runner Tech Blog

Creating a Sci-fi Lab Room

Creating Main Menu UI Panel Part 2!