- You are calling a method in your script and you receive the following error:
error CS1502: The best overloaded method match for `______________' has
some invalid arguments.
This error occurs when the argument types being passed to a method do not match the parameter types of that method. If the called method is overloaded, then none of the overloaded versions has a signature that matches the argument types being passed.
Error presented in this example:
error CS1502: The best overloaded method match for `MyScript.MethodA(int, int)' has some invalid arguments.
Check the types of the arguments that are being passed to the method and make sure that they match the arguments of the method being called.