I’m trying to create a define a local variable on a prefab after a user clicks on the instantiated data. I’m putting this variable in an onClick function. Only it’s giving me this error-
string savedate = PlayerPrefs.SetString (“DateofService”, OilServiceDate);
The function doesn’t return anything…
Any idea why?