0
\$\begingroup\$

had not expected such a basic mapping to not come as default... what is the simplest way to do that simple mapping - that does not require modifying existing scripts?

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

The whole idea of the new input system is to stop using the legacy Input class entirely. It's a full replacement, not just a few extra features.

If you want legacy scripts relying on Input to keep working unchanged, you can run both input systems under Project Settings > Player > Active Input Handling, as shown in the documentation:

Enabling both input systems

This means you're asking your Unity game to do twice as much work piping input through two different systems every frame. It's OK during early migration and testing, but I'd strongly recommend biting the bullet and editing the old scripts so everything in your project uses the same input system.

\$\endgroup\$
2
  • \$\begingroup\$ i tried automatically updating the old scripts but everything is broken on mobile... Both seems to have some things working others not working \$\endgroup\$
    – ina
    Nov 19 at 12:56
  • \$\begingroup\$ Then post a question about how to fix one of those scripts. You're a game developer - "automatic update" is a nice convenience when it works, but it's far from the only option available to you. \$\endgroup\$
    – DMGregory
    Nov 19 at 12:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .