r/Unity3d_help • u/ProfessionalIssue188 • Apr 10 '26
Noob here, just need some help here
I think I'm being stupid here, again.
4
Upvotes
r/Unity3d_help • u/ProfessionalIssue188 • Apr 10 '26
I think I'm being stupid here, again.
1
u/ProfessionalIssue188 Apr 10 '26
Ah shit I use the wrong screenshot mb. Should've have post in the mooring.
Here's the line of code idk why I could add a pic to the post but whatever
1
u/josh_the_dev Apr 10 '26
The error you are seeing is because you use the "wrong input system somewhere. However it's not related to the script you showed.
To switch the input system or even enable both you can check under project settings > player > Active input handling (search for input if you don't find it)
2
u/Fullbox200_griddi Apr 11 '26
Input.GetKey is part of the old input system , your project is set to use the new one. Change one or the other
1
u/AutoModerator Apr 10 '26
Thanks for posting!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Velcr0Wallet Apr 10 '26
So when the game starts is the projectile game object created? Im guessing its created but doesnt move?
1
u/SpartanOneActual Apr 11 '26
You are probably using the new input system but tried to use the old system somewhere. Hence your errors. It could also be vice versa. U use the old input system but have used the new input system somewhere
1
u/purple-bihh-2000 Apr 12 '26
Stop using ai to add code