Check out example codes for "unity serializefield". It will help you in understanding the concepts better.

Code Example 1

//Shows the private variable in the Unity Inspector
[SerializeField]
private string name;

Learn ReactJs, React Native from akashmittal.com