TypeInfoBoxAttribute

The TypeInfoBox attribute adds an info box to the very top of a type in the inspector.

Use this to add an info box to the top of a class in the inspector, without having to use neither the PropertyOrder nor the OnInspectorGUI attribute.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)1036, AllowMultiple = True, Inherited = True)]
public class TypeInfoBoxAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

Fields

Return Type Definition Description
string Message The message to display in the info box.

Constructors

Definition Description
TypeInfoBoxAttribute(string) Draws an info box at the top of a type in the inspector.

Example

The following example demonstrates the use of the TypeInfoBox attribute.

[TypeInfoBox("This is my component and it is mine.")]
public class MyComponent : MonoBehaviour
{
    // Class implementation.
}