r/UnityHelp • • Jan 06 '21

UNITY Why the error?

4 Upvotes

5 comments sorted by

2

u/Sharkytrs Jan 06 '21

refresh your asset folder and try again? also instead of dragging onto the scene, try selecting the object and dragging into position on the inspector instead.

2

u/[deleted] Jan 06 '21

try making a new c# file or make sure visual studios is up to date and setup for unity c# development

2

u/NEOF Jan 12 '21

I do not think that keycode is a valid type.
It should be "KeyCode" not "keycode"
Script probably cant compile for the first time because of it - so you can not add it to the object.

1

u/mrventures Jan 07 '21

Here's the fix, should be finished processing within an hour

https://youtu.be/ob-kOTH0Nb4