title: Unity CS1001: Identifier expected but all syntax is right?
body: <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  
  public class QuizManager : MonoBehaviour
  {
      public List&lt;QuestionsAndAnswers&gt; QnA;
      public GameObject[] options;
      public int currentQuestion;
      private Text QuestionTxt;
  
  
      private void start()
      {
          generateQuestion();
      }
  
      void SetAnswers()
      {
          for (int i = 0; i &lt; options.Length; i++)
          {
              options[i].transform.GetChild(0).GetComponent&lt;Text&gt;().text = QnA[currentQuestion].Answers.[i];
          }
      }
  
      void generateQuestion()
      {
          currentQuestion = Random.Range(0, QnA.Count);
  
          QuestionTxt.text = QnA[currentQuestion].Question;
  
      }
  }
  </code></pre>
  <p>I can't find the problem! I know the problem is in line 23 (<code>options[i].transform.GetChild(0).GetComponent&lt;Text&gt;().text = QnA[currentQuestion].Answers.[i];</code>). It is expecting something but I don't know what. Looking through the web didn't help.</p>