uinty hide in inspectr code example
Example: unity hide in inspector
using UnityEngine;
public class Example : MonoBehaviour
{
// Make the variable p not show up in the inspector
// but be serialized.
[HideInInspector]
int p = 5;
}