How do I make the variables in the inspector to appear?

My public variables doesn’t seem to appear in the inspector is there any solution for this?

public int mapWidth;
public int mapHeight;
public float noiseScale;

public void GenerateMap()
{
    float[,] noiseMap = Noise.GenerateNoiseMap(mapWidth, mapHeight, noiseScale);

    MapDisplay display = FindObjectOfType<MapDisplay>();
    display.DrawNoiseMap(noiseMap);
}

hi;
create a new script with another name and check again ;

your problem must be cause of some editor script;