Using the Input Actions Asset

Hi,
As much as I know there are two ways of using the Input Actions Asset:

  1. Generate C# Class
  2. Add Player Input Component (and this can be used in 4 different ways: Send Messages, Broadcast Messages, Invoke Unity Events, Invoke C# Events)

Is there a particular reason why Nathan chose to create this course using the Generate C# Class method? Maybe because it is the standard way to go? Or is it more flexible? Robust?

Thanks

Because we need to be able to subscribe and unsubscribe to methods on the fly in the states, it made the most sense to use the C# class. For what we’re doing here, it is more robust, and it ensures that all states in the Input Actions Asset are dealth with.

It also gives us the deepest dive yet into Unity’s new InputSystem.

Thanks @Brian_Trotter

Privacy & Terms