Posted by : Eugene Tuesday, June 6, 2017
You may have created a public variable through script, but then you can't change it. Why is that? It's because you can only change it through the interface, in Unity. Otherwise make the variable public. That's just how it works.