Hi,
Just wondering, was doing the Text101 chapter about the “Update Text Component”.
The video tells us to put [SerializeField] in front of a variable to make it available in the editor. Instead i used public in front of my variable, and the result is exactly the same;
- [SerializeField] Text textComponent;
- public Text textComponent;
My question: When do I use [SerializeField]? When do I use public?
And what are the different effects of using these?
thanks in advance,
Joost