/// <summary> /// Adds a validation message on top of the editor /// </summary> /// <param name="message"></param> /// <param name="type"></param> /// <param name="target"></param> public void AddMessage(string message, MessageType type, UnityEngine.Object target, Func <bool> onValidate = null) { var contextMessage = new Validation(message, type.Convert(), target); messages.Add(contextMessage); }