public static void feedbackLabel(string message,labelFeedbacks type) { switch ( type) { case labelFeedbacks.OK: GUI.color = Color.green; break; case labelFeedbacks.WARNING: GUI.color = Color.yellow; break; case labelFeedbacks.ERROR: GUI.color = Color.red; break; } GUILayout.BeginHorizontal("box",GUILayout.ExpandWidth(true)); GUI.color = Color.white; GUILayout.Label(message); GUILayout.EndHorizontal(); }
public static void feedbackLabel(string message, labelFeedbacks type) { switch (type) { case labelFeedbacks.OK: GUI.color = Color.green; break; case labelFeedbacks.WARNING: GUI.color = Color.yellow; break; case labelFeedbacks.ERROR: GUI.color = Color.red; break; } GUILayout.BeginHorizontal("box", GUILayout.ExpandWidth(true)); GUI.color = Color.white; GUILayout.Label(message); GUILayout.EndHorizontal(); }