I am getting this error:
The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(AddComponentWindow) <setInitialSelectionPosition>k__BackingField
This is the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class QuestionGenerator : MonoBehaviour
{
public int level = 1;
public int secondNumber = 1;
public TextMeshPro textmeshPro;
void Start()
{
TextMeshPro text = textmeshPro.GetComponent<TextMeshPro>();
text.SetText("{0} + {1} = ", level, secondNumber);
}
}
Why am I getting this error?