I have no clue as to why, especially since I even tried to straight up copy the code from the git, but for some reason I keep getting this error that essentially says that “Controls.controls” is ambiguous and I am completely stumped here.
You may have 2 classes called Controls
. If you hover over the red squiggly above where it says controls = new Controls()
it should show the issue. Controls
is also not a good name for it, because Windows is riddled with classes full of controls. According to windows a button, textbox, dropdown, etc. are all ‘controls’
Paste in your complete InputActions.cs and we’ll take a look. Be sure to paste in the text of the script rather than a screenshot.
- Forum User Guides : How to apply code formatting within your post