C# Noob Question

How do I make C# member variables accessible to the “Default Properties” window in the editor? This code doesn’t do the trick:

using UnityEngine;
using System.Collections;

public class HeightmapTerrain : MonoBehaviour 
{
	public Vector3 mSize;
	public Texture2D mHeightMap;
	public Material mMaterial;
	
	public uint mVertexResolution = 1024;

	// et cetera
}

Thanks.

The default properties only shows references to other objects. Eg.

public Texture2D mHeightMap;

But not floats or other variables which can have a default value set in the script.

If you want to see mVertexResolution in the inspector when attaching the script to a game object then you should make it an int instead of uint:

public int mVertexResolution = 1024;