Hello im trying to put a string to a textmeshpro text but this error keeps showing up.
here’s my codes:
[SerializeField]
public TextMeshProUGUI resulttxt;
[SerializeField]
public TextMeshProUGUI explanationtxt;
private string infp;
void Start()
{
resulttxt.text = PlayerPrefs.GetString("typeA") + PlayerPrefs.GetString("typeB") + PlayerPrefs.GetString("typeC") + PlayerPrefs.GetString("typeD");
ExplainType();
}
void ExplainType()
{
if (resulttxt = "INFP")
{
infp = "ate angel ganda";
explanationtxt.text = infp;
}
}
UI view: