protected internal static void DrawPropertiesExcluding(SerializedObject obj, params string[] propertyToExclude)
{
SerializedProperty iterator = obj.GetIterator();
bool enterChildren = true;
while (iterator.NextVisible(enterChildren))
{
enterChildren = false;
if (!Enumerable.Contains<string>(propertyToExclude, iterator.name))
{
EditorGUILayout.PropertyField(iterator, true, new GUILayoutOption[0]);
}
}
}