Question by
Kramchay16_ · Sep 25, 2017 at 06:23 AM ·
inspectorvariables
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);
}
Comment
Are you sure the name of the file matches the name of the class ? Are you sure it's a script derivating from $$anonymous$$onoBehaviour ?
Answer by Cuttlas-U · Sep 25, 2017 at 09:12 AM
hi; create a new script with another name and check again ;
your problem must be cause of some editor script;
Your answer
![](https://koobas.hobune.stream/wayback/20220612135555im_/https://answers.unity.com/themes/thub/images/avi.jpg)