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

Code Example 1

using UnityEngine;

public class Example : MonoBehaviour
{
    // Make the variable p not show up in the inspector
    // but be serialized.
    [HideInInspector]
    int p = 5;
}

Code Example 2

[HideInInspector]
public float myVar;

Code Example 3

public float notHidden; // Displayed
[HideInInspector] // Hides var below
public float hidden;

Learn ReactJs, React Native from akashmittal.com