2
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
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.