Skip to main content

Message

namespace: qASIC

Introduction

The Message Attribute allows to display messages in the inspector.

Message attribute

Setup

Add the Message Attribute to the targeted field and specify the message.

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;
}