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*;*
  • }*
    }
    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. :slight_smile:

Just a dumb check…
Are you “using UnityEngine;” ?

D’oh! Now I’m 10x more embarrassed.