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

Code Example 1

using UnityEngine;

public class Example : MonoBehaviour
	//Use this PropertyAttribute to add a header above some fields in the Inspector.
    [Header("Hi there!")]
    //Space between variables 
    //Attribute used to make a float or int variable in a script be restricted to a specific range.
 	//public RangeAttribute(float min, float max);

    public string playerName = "Unnamed";

Learn ReactJs, React Native from