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
25 Replies
$paste
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!
Please paste code instead.
And of course PunchL doesnt exist if the animator doesnt have it
You need to add it to animator controller
bottom right
BlazeBin - tkblodnptdwf
A tool for sharing your source code with the world!
Please do this for me $unitybug
If intellisense is not working for Rider / Visual Studio, follow these steps.
Close the editor and re-open it again by double-clicking a script file.
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.
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
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.yeah i just edited that now
it still claims my parameter punchL is missing
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
yeah the parameter is assigned to player 1
and the other parameters such as isKnocked and punched is assigned to enemy1
I would just try to restart Unity then
ill restart my pc real quick then
No need
That warning is 10 minutes old though
yeah i closed it recently like 2 mins ago
Did you actually clear the log before running the game?
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
I would suggest going to $unity
As this is more a Unity specific issue
They might know more.
alright thanks for the help
I tried at least, seems like a bug to me. At least without knowing more information.