// Custom property holder area height calculation function. Unity will set // script inspector height based on the value returned by this override method. public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { float returnVal = rm.GetRowPixels(); return(returnVal); }