C
C#12mo 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
Buddy12mo ago
$paste
MODiX
MODiX12mo 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
Buddy12mo 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
vinhOP12mo ago
No description
vinh
vinhOP12mo ago
bottom right
vinh
vinhOP12mo ago
BlazeBin - tkblodnptdwf
A tool for sharing your source code with the world!
Buddy
Buddy12mo ago
Please do this for me $unitybug
MODiX
MODiX12mo 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
Buddy12mo 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
vinhOP12mo 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
Buddy12mo 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
vinhOP12mo ago
yeah i just edited that now it still claims my parameter punchL is missing
Buddy
Buddy12mo 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
vinhOP12mo ago
yeah the parameter is assigned to player 1 and the other parameters such as isKnocked and punched is assigned to enemy1
Buddy
Buddy12mo ago
I would just try to restart Unity then
vinh
vinhOP12mo ago
ill restart my pc real quick then
Buddy
Buddy12mo ago
No need That warning is 10 minutes old though
vinh
vinhOP12mo ago
yeah i closed it recently like 2 mins ago
Buddy
Buddy12mo ago
Did you actually clear the log before running the game?
vinh
vinhOP12mo 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
Buddy12mo ago
I would suggest going to $unity
Buddy
Buddy12mo ago
As this is more a Unity specific issue They might know more.
vinh
vinhOP12mo ago
alright thanks for the help
Buddy
Buddy12mo 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