- Home /
I know it says be specific but what the actual hell is this ?
I've made an input script.
function Update () {
if(Input.GetButtonUp("Jump")){
Debug.Log("You hit the spacebar?");
}
}
As far as I can tell it works , no errors appear. But as soon as I press play this comes up .
MissingMethodException: Input.GetButtonUp Boo.Lang.Runtime.DynamicDispatching.MethodDispatcherFactory.ProduceExtensionDispatcher () Boo.Lang.Runtime.DynamicDispatching.MethodDispatcherFactory.Create () Boo.Lang.Runtime.RuntimeServices.DoCreateMethodDispatcher (System.Object target, System.Type targetType, System.String name, System.Object[] args) Boo.Lang.Runtime.RuntimeServices.CreateMethodDispatcher (System.Object target, System.String name, System.Object[] args) Boo.Lang.Runtime.RuntimeServices+c_AnonStorey15.<>m_9 () Boo.Lang.Runtime.DynamicDispatching.DispatcherCache.Get (Boo.Lang.Runtime.DynamicDispatching.DispatcherKey key, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.Object[] args, System.String cacheKeyName, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.Invoke (System.Object target, System.String name, System.Object[] args) UnityScript.Lang.UnityRuntimeServices.Invoke (System.Object target, System.String name, System.Object[] args, System.Type scriptBaseType) Input.Update () (at Assets/Input.js:3)
Being new to Unity I have no idea what that *is*The error keeps repeating ever second so I end up getting 100's of the same error in the console . Does anyone know how to fix this?
Answer by ArkaneX · Aug 18, 2013 at 10:11 PM
At the bottom of the call stack, line:
UnityScript.Lang.UnityRuntimeServices.Invoke (System.Object target, System.String name, System.Object[] args, System.Type scriptBaseType) Input.Update () (at Assets/Input.js:3)
points at error in Assets/Input.js script. If you named your script Input.js, then try renaming it and check if that helps.
That's actually has to be the problem. He named a script "Input" which will create a new class "Input" which of course doesn't have the functions the original Input class has.
We had this case a couple of times, in most cases it was the GUI class but some people managed other names as well like Network, Animation, Color, Camera, Screen, ...
Answer by JoaquinRD · Aug 18, 2013 at 04:47 PM
Most of the calls in the stack are from Boo script. Did you accidentally make a Boo script instead of JavaScript?
Your answer
Follow this Question
Related Questions
how to change default third player controls in unity, to work with touch? 1 Answer
MissingMethodException with jslib calling c# functions 0 Answers
Eliminating input loss 1 Answer
Detecting and saving keyboard presses without using more than 20 if statements. 0 Answers
How to calibrate accelerometer according to start ? 1 Answer