heightAmplitude[layerIndex].floatValue=(heightMax[layerIndex].floatValue-heightMin[layerIndex].floatValue)*0.01f;// Conversion centimeters to meters.
}
// Note: We should only enclose min/max property here for change detection. However heightAmplitude may not be correctly initialize if default value was not correct
// force a refresh when the user setup a heightmap, so we are sure it is correct
if(EditorGUI.EndChangeCheck())
{
heightAmplitude[layerIndex].floatValue=(heightMax[layerIndex].floatValue-heightMin[layerIndex].floatValue)*0.01f;// Conversion centimeters to meters.