Skip to main content

CommentAttribute

A class in Alta.Attributes, the global namespace.

Inspector attribute that shows a comment box above a field.

Constructors​

MemberWhat it is
CommentAttribute(string message, float numberOfLines = 3, CommentAttribute.MessageType messageType = 0)Creates a CommentAttribute from message, numberOfLines and messageType.

Properties​

MemberWhat it is
string Message { get; private set; }Text shown.
float NumberOfLines { get; private set; }Height of the box in lines. Default 3.
CommentAttribute.MessageType TypeOfMessage { get; private set; }Icon style: none, info, warning or error.