- Home /
Question by
jlegrice · Nov 19, 2012 at 09:50 PM ·
errormonodevelopclasscompilationcs0117
Unity isn't compiling standard api calls?
Hi everyone.
Feel a bit embarrassed asking about this, but I just can't wrap my head around it. Here's my code:
void Update()
{
int nTouches = Input.touchCount;
for (int i=0; i<nTouches; i++)
{
Touch t = Input.touches[i];
}
}
And here are my errors:
Assets/GenericLib/Input/TouchInput.cs(77,46): error CS0117: `Input' does not contain a definition for `touchCount'
Assets/GenericLib/Input/TouchInput.cs(83,49): error CS0117: `Input' does not contain a definition for `touches'
Extremely confused. Any help appreciated greatly. :)
Comment
Best Answer
Answer by jlegrice · Nov 20, 2012 at 12:35 AM
http://answers.unity3d.com/questions/258056/input-does-not-contain-a-definition-for-getaxis.html
D'oh! Now I'm 10x more embarrassed.
Your answer
Follow this Question
Related Questions
Getting a "type expected" error on WaitForSeconds 2 Answers
Monodevelop crashes on startup 1 Answer
Monodevelop not starting 1 Answer
Using JS class in C# 1 Answer
My Javascript is not opening 0 Answers