Message

Introduction

The message attribute let's you leave messages in the inspector. You can also assign icons that will be displayed on the right.

Setup

Add the message attribute to the targeted field and specify the text. Optionally you can assign an icon that will be displayed next to it.

public class ExampleClass : MonoBehaviour
{
    [Message("This is an error message", InspectorMessageIconType.error)]
    [Message("This is a warning message", InspectorMessageIconType.warning)]
    [Message("This is a notification message", InspectorMessageIconType.notification)]
    [Message("This is an empty message")]
    public string exampleField;
}

Last updated