C
C#11mo ago
vinh

Parameter missing

claims my parameter "punchL" is missing despite being in the animator panel and in my scripts, literally just want to make a trash boxing game for my school project
No description
25 Replies
Buddy
Buddy11mo ago
$paste
MODiX
MODiX11mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Buddy
Buddy11mo ago
Please paste code instead. And of course PunchL doesnt exist if the animator doesnt have it You need to add it to animator controller
vinh
vinh11mo ago
No description
vinh
vinh11mo ago
bottom right
vinh
vinh11mo ago
BlazeBin - tkblodnptdwf
A tool for sharing your source code with the world!
Buddy
Buddy11mo ago
Please do this for me $unitybug
MODiX
MODiX11mo ago
If intellisense is not working for Rider / Visual Studio, follow these steps.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Close the editor and re-open it again by double-clicking a script file.
Buddy
Buddy11mo ago
It's not part of the issue, but it is an issue. Once you have done what was mentioned above. Are you sure it is the right animator controller? Maybe it is a duplicate in another directory.
vinh
vinh11mo ago
i did change the bottom of the code because initially it was working but as soon as i removed the code to disable the collider at the very end it claimed punchL was a missing parameter despite not changing anything about it
Buddy
Buddy11mo ago
Note that the gizmos on should be On C# is case sensitive and methods should always be PascalCase like this OnHelloWorld If you configure your editor correctly you should just need to write void On and it should give you a list of Unity methods, then just press tab to accept the suggestion.
vinh
vinh11mo ago
yeah i just edited that now it still claims my parameter punchL is missing
Buddy
Buddy11mo ago
But I would just check if the animator controller is the same as the one in the editor Please double-click Player1 controller in the animator component
vinh
vinh11mo ago
yeah the parameter is assigned to player 1 and the other parameters such as isKnocked and punched is assigned to enemy1
Buddy
Buddy11mo ago
I would just try to restart Unity then
vinh
vinh11mo ago
ill restart my pc real quick then
Buddy
Buddy11mo ago
No need That warning is 10 minutes old though
vinh
vinh11mo ago
yeah i closed it recently like 2 mins ago
Buddy
Buddy11mo ago
Did you actually clear the log before running the game?
vinh
vinh11mo ago
yeah it only comes up with the warning parameter is missing when i press F to throw a punch normally when it hits it displays a hurt animation but it doesnt and it just says parameter PunchL is missing
Buddy
Buddy11mo ago
I would suggest going to $unity
Buddy
Buddy11mo ago
As this is more a Unity specific issue They might know more.
vinh
vinh11mo ago
alright thanks for the help
Buddy
Buddy11mo ago
I tried at least, seems like a bug to me. At least without knowing more information.
Want results from more Discord servers?
Add your server