unity inspector error message
EditorGUILayout.HelpBox("Some warning text", MessageType.Error);
EditorGUILayout.HelpBox("Some warning text", MessageType.Info);
EditorGUILayout.HelpBox("Some warning text", MessageType.None);
EditorGUILayout.HelpBox("Some warning text", MessageType.Warning);