Skip to content

Message

[Message] attribute used for drawing some text.


Support Types

Type
String

Parameters

Name Description
Text Text of the message.
Message Type Type of the message.
The color changes depending on the type.

Examples

[Message("Some text here...")]
public string value1;

[Message("Some text here...", MessageType.Warning)]
public GameObject value2;
Note

Make sure that you have added ApexInspector namespace in your script, to get access to all attributes.

using ApexInspector;


Demo

using ApexInspector;
using UnityEngine;

public class ExampleComponent : MonoBehaviour
{
    [Message("Hello!\nThis is Apex Message attribute!", MessageType.Warning)]
    public GameObject value;
}

Static-demo

Static demo