Version 2.1.0.0

Odin has a dedicated attribute overview with examples

DetailedInfoBoxAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = true, Inherited = true)]
[DontApplyToListElements]
public class DetailedInfoBoxAttribute : Attribute, _Attribute

DetailedInfoBox is used on any property, and displays a message box that can be expanded to show more details.

Use this to convey a message to a user, and give them the option to see more details.

Inheritance
  • System.Object
  • System.Attribute
  • DetailedInfoBoxAttribute
Example

The following example shows how DetailedInfoBox is used on a field.

public class MyComponent : MonoBehaviour
{
	[DetailedInfoBox("This is a message", "Here is some more details about that message")]
	public int MyInt;
}
See Also

Constructors

DetailedInfoBoxAttribute(String, String, InfoMessageType, String)
Displays a message box with hideable details.
public DetailedInfoBoxAttribute(string message, string details, InfoMessageType infoMessageType = InfoMessageType.Info, string visibleIf = null)
Parameters
System.String message

The message for the message box.

System.String details

The hideable details of the message box.

InfoMessageType infoMessageType

Type of the message box.

System.String visibleIf

Optional name of a member to hide or show the message box.

Fields

Details
The hideable details of the message box.
public string Details
InfoMessageType
Type of the message box.
public InfoMessageType InfoMessageType
Message
The message for the message box.
public string Message
VisibleIf
Optional name of a member to hide or show the message box.
public string VisibleIf

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.